1
0
Fork 0
mirror of https://github.com/NixOS/nix synced 2025-07-07 18:31:49 +02:00

* New primop __toXML (or builtins.toXML) to convert an expression to

an XML representation stored in a string.  This should be useful to
  pass structured information to builders.
This commit is contained in:
Eelco Dolstra 2006-08-24 14:34:29 +00:00
parent f793caf936
commit 215ec2ddc6
3 changed files with 12 additions and 0 deletions

View file

@ -0,0 +1 @@
Str("<?xml version='1.0' encoding='utf-8'?>\n<expr>\n <list>\n <string value=\"ab\" />\n <int value=\"10\" />\n <attrs>\n <attr name=\"x\">\n <string value=\"x\" />\n </attr>\n <attr name=\"y\">\n <string value=\"x\" />\n </attr>\n </attrs>\n </list>\n</expr>\n")

View file

@ -0,0 +1 @@
builtins.toXML [("a" + "b") 10 (rec {x = "x"; y = x;})]