aboutsummaryrefslogtreecommitdiff
path: root/src/nix-instantiate/main.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/nix-instantiate/main.cc')
-rw-r--r--src/nix-instantiate/main.cc4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/nix-instantiate/main.cc b/src/nix-instantiate/main.cc
index fefc17c48..93b7c03be 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;