* Before selecting an attribute from `x', check whether it's an
attribute set. `tryEval' no longer catches this. svn path=/nixpkgs/trunk/; revision=18113
This commit is contained in:
parent
4c0ff006f3
commit
23ef4c4f79
|
@ -38,8 +38,9 @@ let
|
|||
packagesWithMetaPlatform = attrSet:
|
||||
if builtins ? tryEval then
|
||||
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 [])
|
||||
(x:
|
||||
let val = builtins.tryEval (processPackage (builtins.getAttr x attrSet)); in
|
||||
if builtins.isAttrs x && val.success && val.value != [] then [{name=x; value=val.value;}] else [])
|
||||
(builtins.attrNames attrSet);
|
||||
in
|
||||
builtins.listToAttrs pairs
|
||||
|
|
Loading…
Reference in New Issue