parent
8bdc1503c1
commit
3a993e2f8e
|
@ -33,16 +33,15 @@ let
|
||||||
(pkgs.lib.getAttrFromPath path pkgs);
|
(pkgs.lib.getAttrFromPath path pkgs);
|
||||||
in testOn job.systems getPkg);
|
in testOn job.systems getPkg);
|
||||||
|
|
||||||
selectMaintained = attrSet: let
|
selectMaintained = attrSet:
|
||||||
if builtins ? tryEval then
|
if builtins ? tryEval then
|
||||||
pairs = pkgs.lib.concatMap
|
let pairs = pkgs.lib.concatMap
|
||||||
(x: let val = builtins.tryEval (processPackage (builtins.getAttr x attrSet)); in
|
(x: let val = builtins.tryEval (processPackage (builtins.getAttr x attrSet)); in
|
||||||
if val.success && val.value != [] then [{name=x; value=val.value;}] else [])
|
if val.success && val.value != [] then [{name=x; value=val.value;}] else [])
|
||||||
(builtins.attrNames attrSet);
|
(builtins.attrNames attrSet);
|
||||||
else
|
in
|
||||||
[];
|
builtins.listToAttrs pairs
|
||||||
in
|
else {};
|
||||||
builtins.listToAttrs pairs;
|
|
||||||
# May fail as much as it wishes, we will catch the error
|
# May fail as much as it wishes, we will catch the error
|
||||||
processPackage = attrSet:
|
processPackage = attrSet:
|
||||||
if attrSet ? recurseForDerivations && attrSet.recurseForDerivations then
|
if attrSet ? recurseForDerivations && attrSet.recurseForDerivations then
|
||||||
|
|
Loading…
Reference in New Issue