packages: apply system filter to checks
This commit is contained in:
parent
e5faf79baa
commit
5f4891e228
2 changed files with 14 additions and 6 deletions
|
@ -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;
|
||||
}
|
||||
|
|
|
@ -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" ];
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue