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);
|
||||
|
||||
selectMaintained = attrSet: let
|
||||
pairs = pkgs.lib.concatMap
|
||||
(x: let val = builtins.tryEval (processPackage (builtins.getAttr x attrSet)); in
|
||||
if val.success && val.value != [] then [{name=x; value=val.value;}] else [])
|
||||
(builtins.attrNames attrSet);
|
||||
if builtins ? tryEval then
|
||||
pairs = pkgs.lib.concatMap
|
||||
(x: let val = builtins.tryEval (processPackage (builtins.getAttr x attrSet)); in
|
||||
if val.success && val.value != [] then [{name=x; value=val.value;}] else [])
|
||||
(builtins.attrNames attrSet);
|
||||
else
|
||||
[];
|
||||
in
|
||||
builtins.listToAttrs pairs;
|
||||
# May fail as much as it wishes, we will catch the error
|
||||
|
Loading…
Reference in New Issue
Block a user