Skip to content

Instantly share code, notes, and snippets.

@yurrriq
Created March 6, 2017 09:19
Show Gist options
  • Save yurrriq/f860f248a87b00ebbd4367d66fe10d6e to your computer and use it in GitHub Desktop.
Save yurrriq/f860f248a87b00ebbd4367d66fe10d6e to your computer and use it in GitHub Desktop.
Nix Antiquotation notes

Antiquotation (${expr}) is supported in indented strings.

Since ${ and '' have special meaning in indented strings, you need a way to quote them. ${ can be escaped by prefixing it with '' (that is, two single quotes), i.e., ''${. '' can be escaped by prefixing it with ', i.e., '''. Finally, linefeed, carriage-return and tab characters can be written as ''\n, ''\r, ''\t.

https://nixos.org/nix/manual/#idm140737318143872

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment