Module system: Fix ‘definitions’ field

Fixes https://github.com/NixOS/nixops/issues/325.
This commit is contained in:
Eelco Dolstra 2015-08-05 14:29:38 +02:00
parent bb38d9974b
commit cbecbd01f9

View File

@ -285,7 +285,7 @@ rec {
in opt // in opt //
{ value = addErrorContext "while evaluating the option `${showOption loc}':" value; { value = addErrorContext "while evaluating the option `${showOption loc}':" value;
definitions = map (def: def.value) defsFinal; definitions = map (def: def.value) res.defsFinal;
files = map (def: def.file) res.defsFinal; files = map (def: def.file) res.defsFinal;
inherit (res) isDefined; inherit (res) isDefined;
}; };