Fix nixos-option

In particular, it no longer produces an "infinite recursion" error
when run with no arguments.
This commit is contained in:
Eelco Dolstra
2013-10-28 22:43:29 +01:00
parent c9dad37f01
commit 3115addf4c
4 changed files with 22 additions and 21 deletions

View File

@@ -160,6 +160,7 @@ rec {
value = (opt.apply or id) merged;
in opt //
{ value = addErrorContext "while evaluating the option `${showOption loc}':" value;
files = map (def: def.file) defs;
definitions = map (def: def.value) defsFinal;
isDefined = defsFinal != [];
};