Put the meta-based choice in suspended state to be used automatically when tryEval is available
svn path=/nixpkgs/trunk/; revision=16886
This commit is contained in:
parent
3e89d56999
commit
8bdc1503c1
|
@ -34,10 +34,13 @@ let
|
||||||
in testOn job.systems getPkg);
|
in testOn job.systems getPkg);
|
||||||
|
|
||||||
selectMaintained = attrSet: let
|
selectMaintained = attrSet: let
|
||||||
pairs = pkgs.lib.concatMap
|
if builtins ? tryEval then
|
||||||
(x: let val = builtins.tryEval (processPackage (builtins.getAttr x attrSet)); in
|
pairs = pkgs.lib.concatMap
|
||||||
if val.success && val.value != [] then [{name=x; value=val.value;}] else [])
|
(x: let val = builtins.tryEval (processPackage (builtins.getAttr x attrSet)); in
|
||||||
(builtins.attrNames attrSet);
|
if val.success && val.value != [] then [{name=x; value=val.value;}] else [])
|
||||||
|
(builtins.attrNames attrSet);
|
||||||
|
else
|
||||||
|
[];
|
||||||
in
|
in
|
||||||
builtins.listToAttrs pairs;
|
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
|
||||||
|
|
Loading…
Reference in New Issue