diff options
author | Eelco Dolstra <e.dolstra@tudelft.nl> | 2006-10-03T15·38+0000 |
---|---|---|
committer | Eelco Dolstra <e.dolstra@tudelft.nl> | 2006-10-03T15·38+0000 |
commit | 5fd44654dbca02f188957279eb25a33a3ecfe96b (patch) | |
tree | 12b0cb0d2e3018795f810314402450b91bc6b7ae /src/nix-instantiate/main.cc | |
parent | 3837fb233cccc8f65629749f07820afba04952a0 (diff) |
* toXML: propagate the context to allow derivations to be used in the
argument.
Diffstat (limited to 'src/nix-instantiate/main.cc')
-rw-r--r-- | src/nix-instantiate/main.cc | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/nix-instantiate/main.cc b/src/nix-instantiate/main.cc index fefc17c48053..93b7c03be360 100644 --- a/src/nix-instantiate/main.cc +++ b/src/nix-instantiate/main.cc @@ -41,9 +41,11 @@ static bool indirectRoot = false; static void printResult(EvalState & state, Expr e, bool evalOnly, bool xmlOutput, const ATermMap & autoArgs) { + ATermList context; + if (evalOnly) if (xmlOutput) - printTermAsXML(e, std::cout); + printTermAsXML(e, std::cout, context); else std::cout << format("%1%\n") % e; |