Revert previous commit because this is implicit. Fix property evaluation
error which arose when one module define a value with "mkDefaultValue" and another module define its value with "mkIf <false>". svn path=/nixpkgs/trunk/; revision=17759
This commit is contained in:
parent
e82843144c
commit
19648abc05
@ -118,7 +118,7 @@ rec {
|
||||
moduleApply { config = delayProperties; } module;
|
||||
|
||||
evalDefinitions = opt: values:
|
||||
if opt ? options && opt.options != [] && opt ? type && opt.type.delayOnGlobalEval then
|
||||
if opt ? type && opt.type.delayOnGlobalEval then
|
||||
map (delayPropertiesWithIter opt.type.iter opt.name)
|
||||
(evalLocalProperties values)
|
||||
else
|
||||
|
@ -126,7 +126,7 @@ rec {
|
||||
filter (x: !isNotdef x) (
|
||||
lib.addErrorContext "while evaluating properties." (
|
||||
triggerPropertiesGlobalEval (
|
||||
map triggerPropertiesEval valList
|
||||
evalLocalProperties valList
|
||||
)))
|
||||
else
|
||||
valList;
|
||||
|
Loading…
Reference in New Issue
Block a user