diff options
Diffstat (limited to 'src/nix-instantiate')
-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; |