mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-01-22 14:45:27 +00:00
Fix mkThenElse and mkAlways evaluation.
svn path=/nixpkgs/trunk/; revision=14528
This commit is contained in:
parent
de8bbafb53
commit
f624a70ee7
|
@ -482,12 +482,12 @@ rec {
|
|||
# evaluate the condition.
|
||||
if isThenElse p then
|
||||
if condition then
|
||||
foldProperty (a: p.thenPart) id content
|
||||
copyProperties content p.thenPart
|
||||
else
|
||||
foldProperty (a: p.elsePart) id content
|
||||
copyProperties content p.elsePart
|
||||
# ignore the condition.
|
||||
else if isAlways p then
|
||||
foldProperty (a: p.value) id content
|
||||
copyProperties content p.value
|
||||
# otherwise (isIf)
|
||||
else
|
||||
evalIf content (condition && p.condition) (tail list);
|
||||
|
|
Loading…
Reference in a new issue