1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-11-22 21:50:55 +00:00

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:
Michael Raskin 2009-08-28 07:00:40 +00:00
parent 3e89d56999
commit 8bdc1503c1

View file

@ -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