mirror of
https://github.com/Misterio77/Foundry.git
synced 2026-08-24 10:04:09 -05:00
hydra: fix unfree evaluation
This commit is contained in:
@@ -3,8 +3,9 @@ let
|
||||
inherit (inputs.nixpkgs.lib) filterAttrs mapAttrs elem;
|
||||
|
||||
notBroken = pkg: !(pkg.meta.broken or false);
|
||||
isDistributable = pkg: (pkg.meta.license or { redistributable = true; }).redistributable;
|
||||
hasPlatform = sys: pkg: elem sys (pkg.meta.platforms or [ ]);
|
||||
filterValidPkgs = sys: pkgs: filterAttrs (_: pkg: hasPlatform sys pkg && notBroken pkg) pkgs;
|
||||
filterValidPkgs = sys: pkgs: filterAttrs (_: pkg: hasPlatform sys pkg && notBroken pkg && isDistributable pkg) pkgs;
|
||||
getCfg = _: cfg: cfg.config.system.build.toplevel;
|
||||
in
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user