the tryEval builtin does not have a strict evaluation. Add the toXML

builtin to force the evaluation of the configuration value.  Thus the
success flag returned by tryEval corespond to the success of the
whole evaluation.

svn path=/nixpkgs/trunk/; revision=17478
This commit is contained in:
Nicolas Pierron 2009-09-28 18:22:31 +00:00
parent fad1b41fe4
commit b0f639844a

View file

@ -219,7 +219,7 @@ rec {
}) (definitionsOf name);
config = builtins.tryEval
(lib.getAttr name result.config);
(builtins.toXML (lib.getAttr name result.config));
}
else if all isAttrs values then
(recurseInto name modules).options