1
0
Fork 0
mirror of https://github.com/NixOS/nix synced 2025-06-29 02:11:15 +02:00

* toXML: propagate the context to allow derivations to be used in the

argument.
This commit is contained in:
Eelco Dolstra 2006-10-03 15:38:59 +00:00
parent 3837fb233c
commit 5fd44654db
4 changed files with 21 additions and 10 deletions

View file

@ -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;