hydra: fix evaluation error when platforms is missing

This commit is contained in:
Gabriel Fontes
2023-03-27 10:00:47 -03:00
parent 756765c7ba
commit 6cc064ec35
+1 -1
View File
@@ -3,7 +3,7 @@ let
inherit (inputs.nixpkgs.lib) filterAttrs mapAttrs elem;
notBroken = pkg: !(pkg.meta.broken or false);
hasPlatform = sys: pkg: elem sys pkg.meta.platforms;
hasPlatform = sys: pkg: elem sys (pkg.meta.platforms or []);
filterValidPkgs = sys: pkgs: filterAttrs (_: pkg: hasPlatform sys pkg && notBroken pkg) pkgs;
getCfg = _: cfg: cfg.config.system.build.toplevel;
in