make hydra build when platforms is []

This commit is contained in:
Gabriel Fontes
2024-04-22 13:15:52 -03:00
parent 3588e84bce
commit 0f6ff8b963
+1 -1
View File
@@ -6,7 +6,7 @@
notBroken = pkg: !(pkg.meta.broken or false);
isDistributable = pkg: (pkg.meta.license or {redistributable = true;}).redistributable;
hasPlatform = sys: pkg: lib.elem sys (pkg.meta.platforms or []);
hasPlatform = sys: pkg: lib.elem sys (pkg.meta.platforms or [sys]);
filterValidPkgs = sys: pkgs: lib.filterAttrs (_: pkg: hasPlatform sys pkg && notBroken pkg && isDistributable pkg) pkgs;
getConfigTopLevel = (_: cfg: cfg.config.system.build.toplevel);