mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-06-13 05:05:29 +03:00
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
2 changed files with 2 additions and 2 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue