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
|
// 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;
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,4 +1,9 @@
|
||||||
{
|
{
|
||||||
ghost = [ "x86_64-linux" ];
|
packages = {
|
||||||
uptime-kuma = [ "x86_64-linux" ];
|
ghost = [ "x86_64-linux" ];
|
||||||
|
uptime-kuma = [ "x86_64-linux" ];
|
||||||
|
};
|
||||||
|
checks = {
|
||||||
|
keycloak = [ "x86_64-linux" ];
|
||||||
|
};
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue