packages: apply system filter to checks

This commit is contained in:
Max Headroom 2022-05-31 20:58:23 +02:00
parent e5faf79baa
commit 5f4891e228
2 changed files with 14 additions and 6 deletions

View file

@ -7,10 +7,13 @@ let
// patched-inputs // patched-inputs
// projects.packages; // projects.packages;
filters = import ./system-filter.nix; filters = import ./system-filter.nix;
doFilter = filterSet: pkgSet: pkgs.lib.filterAttrs (name: _:
filterSet ? "${name}" -> builtins.elem system filterSet."${name}"
) pkgSet;
in { in {
packages = pkgs.lib.filterAttrs (name: _: packages = doFilter filters.packages all;
filters ? "${name}" -> builtins.elem system filters."${name}"
) all;
inherit (projects) devShells checks; checks = doFilter filters.checks projects.checks;
inherit (projects) devShells;
} }

View file

@ -1,4 +1,9 @@
{ {
packages = {
ghost = [ "x86_64-linux" ]; ghost = [ "x86_64-linux" ];
uptime-kuma = [ "x86_64-linux" ]; uptime-kuma = [ "x86_64-linux" ];
};
checks = {
keycloak = [ "x86_64-linux" ];
};
} }