From 7021f5c050b055f515f5084ad36a2962483362af Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=B6rg=20Thalheim?= Date: Sat, 2 Nov 2024 15:21:30 +0100 Subject: [PATCH] expose packages & devshells in flake check --- flake.nix | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/flake.nix b/flake.nix index 6ba27192..0f22359d 100644 --- a/flake.nix +++ b/flake.nix @@ -24,6 +24,7 @@ lib, config, pkgs, + self', ... }: { @@ -35,6 +36,8 @@ inherit pkgs; inherit (inputs) self; }; + packages = lib.mapAttrs' (n: lib.nameValuePair "package-${n}") self'.packages; + devShells = lib.mapAttrs' (n: lib.nameValuePair "devShell-${n}") self'.devShells; in lib.optionalAttrs pkgs.stdenv.isLinux { t00-simple = import ./tests/t00-simple.nix testArgs; @@ -45,7 +48,9 @@ } // { clippy = config.packages.harmonia.override { enableClippy = true; }; - }; + } + // packages + // devShells; devShells.default = pkgs.callPackage ./shell.nix { }; treefmt = {