From f844352f9e10b943a434ae6d24d712783654e9f6 Mon Sep 17 00:00:00 2001 From: Bastien Riviere Date: Sun, 3 Sep 2023 18:34:56 +0200 Subject: [PATCH] feat: add package.sealme and overlay --- flake.nix | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/flake.nix b/flake.nix index 16460c2..9d69ebc 100644 --- a/flake.nix +++ b/flake.nix @@ -9,11 +9,12 @@ }; outputs = inputs @ {flake-parts, ...}: - flake-parts.lib.mkFlake {inherit inputs;} { + flake-parts.lib.mkFlake {inherit inputs;} ({withSystem, ...}: { imports = [ inputs.treefmt-nix.flakeModule ]; systems = ["x86_64-linux" "aarch64-linux" "aarch64-darwin" "x86_64-darwin"]; + perSystem = { config, self', @@ -38,6 +39,8 @@ modules = ./gomod2nix.toml; }; + packages.sealme = config.packages.default; + treefmt = { projectRootFile = ".git/config"; programs = { @@ -55,7 +58,14 @@ ]; }; }; + flake = { + overlays.default = final: prev: + withSystem prev.stdenv.hostPlatform.system ( + {config, ...}: { + sealme = config.packages.sealme; + } + ); }; - }; + }); }