mirror of
https://github.com/Mic92/nix-update.git
synced 2024-09-11 02:25:32 +03:00
also add packages and devShells to checks
This commit is contained in:
parent
8e3c8afa5e
commit
1c948876a8
@ -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;
|
||||
};
|
||||
});
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user