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
// projects.packages;
filters = import ./system-filter.nix;
doFilter = filterSet: pkgSet: pkgs.lib.filterAttrs (name: _:
filterSet ? "${name}" -> builtins.elem system filterSet."${name}"
) pkgSet;
in {
packages = pkgs.lib.filterAttrs (name: _:
filters ? "${name}" -> builtins.elem system filters."${name}"
) all;
packages = doFilter filters.packages all;
inherit (projects) devShells checks;
checks = doFilter filters.checks projects.checks;
inherit (projects) devShells;
}

View file

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