forked from lix-project/lix
09381cccff
* src/libexpr/expr-to-xml.cc (nix::showAttrs): Add `location' parameter. Provide location XML attributes when it's true. Update callers. (nix::printTermAsXML): Likewise. * src/libexpr/expr-to-xml.hh (nix::printTermAsXML): Update prototype; have `location' default to `false'. * src/nix-instantiate/nix-instantiate.cc (printResult, processExpr): Add `location' parameter; update callers. (run): Add support for `--no-location'. * src/nix-instantiate/help.txt: Update accordingly. * tests/lang.sh: Invoke `nix-instantiate' with `--no-location' for the XML tests. * tests/lang/eval-okay-toxml.exp, tests/lang/eval-okay-to-xml.nix: New files.
32 lines
856 B
Plaintext
32 lines
856 B
Plaintext
Usage: nix-instantiate [OPTIONS...] [FILES...]
|
|
|
|
`nix-instantiate' turns Nix expressions into store derivations.
|
|
|
|
The argument `-' may be specified to read a Nix expression from
|
|
standard input.
|
|
|
|
Options:
|
|
|
|
--version: output version information
|
|
--help: display help
|
|
|
|
--verbose / -v: verbose operation (may be repeated)
|
|
|
|
--eval-only: evaluate and print resulting term; do not instantiate
|
|
--parse-only: parse and print abstract syntax tree
|
|
|
|
--attr / -A PATH: select an attribute from the top-level expression
|
|
|
|
--add-root: add garbage collector roots for the result
|
|
|
|
For --eval-only / --parse-only:
|
|
|
|
--xml: print an XML representation of the abstract syntax tree
|
|
--no-location: don't provide source location information in the
|
|
output XML tree
|
|
|
|
For --eval-only:
|
|
|
|
--strict: compute attributes and list elements, rather than being
|
|
lazy
|