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:
parent
3837fb233c
commit
5fd44654db
4 changed files with 21 additions and 10 deletions
|
@ -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;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue