Remove values coming from the original sources because this may cause the evaluation of unsafe code.
Instead add the computed value under tryEval to catch bad evaluations. svn path=/nixpkgs/trunk/; revision=17453
This commit is contained in:
parent
b642db4d0e
commit
13f467fc84
|
@ -211,14 +211,15 @@ rec {
|
||||||
declarations =
|
declarations =
|
||||||
map (m: {
|
map (m: {
|
||||||
source = m.key;
|
source = m.key;
|
||||||
value = m.options;
|
|
||||||
}) (declarationsOf name);
|
}) (declarationsOf name);
|
||||||
|
|
||||||
definitions =
|
definitions =
|
||||||
map (m: {
|
map (m: {
|
||||||
source = m.key;
|
source = m.key;
|
||||||
value = m.config;
|
|
||||||
}) (definitionsOf name);
|
}) (definitionsOf name);
|
||||||
|
|
||||||
|
config = builtins.tryEval
|
||||||
|
(lib.getAttr name result.config);
|
||||||
}
|
}
|
||||||
else if all isAttrs values then
|
else if all isAttrs values then
|
||||||
(recurseInto name modules).options
|
(recurseInto name modules).options
|
||||||
|
|
Loading…
Reference in New Issue