1
0
Fork 0
mirror of https://github.com/NixOS/nix synced 2025-06-27 00:11:17 +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

@ -507,8 +507,9 @@ static Expr primToPath(EvalState & state, const ATermVector & args)
static Expr primToXML(EvalState & state, const ATermVector & args)
{
std::ostringstream out;
printTermAsXML(strictEvalExpr(state, args[0]), out);
return makeStr(toATerm(out.str()));
ATermList context = ATempty;
printTermAsXML(strictEvalExpr(state, args[0]), out, context);
return wrapInContext(context, makeStr(toATerm(out.str())));
}