Files
lix/doc/manual/rl-next/nix-instantiate-raw.md
T
0c2ced0224 feat(nix-instantiate): add --raw flag
The experimental `nix eval` command already supports a `--raw` flag.
This commit implements the same flag for the stable nix-instantiate command.

Until now instructions and scripts that didn't want to rely on experimental
features had to use workarounds such as:

    nix-instantiate --eval <something> | tr -d \"

(which also undesirably also removes double quotation marks within the string), or

    nix-instantiate --eval <something> | jq -j

(which undesirably depends on another package).

Co-authored-by: Raito Bezarius <raito@lix.systems>
Co-authored-by: Silvan Mosberger <silvan.mosberger@tweag.io>
Change-Id: Iced9a80ee7edd60af2385c5193485f1774175339
2025-05-29 15:25:12 +02:00

381 B

synopsis, issues, prs, cls, category, credits
synopsis issues prs cls category credits
Add --raw flag to `nix-instantiate --eval` for unescaped output
gh#12119
2886
Improvements
not-my-profile
infinisil
raito

The nix-instantiate --eval command now supports a --raw flag. When used, the result must be coercible to a string (as with ${...}) and is printed verbatim, without quotes or escaping.