feat: add package.sealme and overlay

This commit is contained in:
Bastien Riviere 2023-09-03 18:34:56 +02:00
parent 7525654ad3
commit f844352f9e
Signed by: babariviere
GPG key ID: 4E5F0839249F162E

View file

@ -9,11 +9,12 @@
}; };
outputs = inputs @ {flake-parts, ...}: outputs = inputs @ {flake-parts, ...}:
flake-parts.lib.mkFlake {inherit inputs;} { flake-parts.lib.mkFlake {inherit inputs;} ({withSystem, ...}: {
imports = [ imports = [
inputs.treefmt-nix.flakeModule inputs.treefmt-nix.flakeModule
]; ];
systems = ["x86_64-linux" "aarch64-linux" "aarch64-darwin" "x86_64-darwin"]; systems = ["x86_64-linux" "aarch64-linux" "aarch64-darwin" "x86_64-darwin"];
perSystem = { perSystem = {
config, config,
self', self',
@ -38,6 +39,8 @@
modules = ./gomod2nix.toml; modules = ./gomod2nix.toml;
}; };
packages.sealme = config.packages.default;
treefmt = { treefmt = {
projectRootFile = ".git/config"; projectRootFile = ".git/config";
programs = { programs = {
@ -55,7 +58,14 @@
]; ];
}; };
}; };
flake = { flake = {
}; overlays.default = final: prev:
}; withSystem prev.stdenv.hostPlatform.system (
{config, ...}: {
sealme = config.packages.sealme;
}
);
};
});
} }