also add packages and devShells to checks

This commit is contained in:
Jörg Thalheim 2023-09-08 06:24:23 +02:00 committed by mergify[bot]
parent 8e3c8afa5e
commit 1c948876a8

View File

@ -14,9 +14,16 @@
flake-parts.lib.mkFlake { inherit inputs; } ({ lib, ... }: {
imports = [ ./treefmt.nix ];
systems = lib.systems.flakeExposed;
perSystem = { config, pkgs, ... }: {
perSystem = { config, pkgs, self', ... }: {
packages.nix-update = pkgs.callPackage ./. { };
packages.default = config.packages.nix-update;
checks =
let
packages = lib.mapAttrs' (n: lib.nameValuePair "package-${n}") self'.packages;
devShells = lib.mapAttrs' (n: lib.nameValuePair "devShell-${n}") self'.devShells;
in
packages // devShells;
};
});
}