diff options
author | Eelco Dolstra <edolstra@gmail.com> | 2021-09-01 12:55:04 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-09-01 12:55:04 +0200 |
commit | 7ee639f9db987a442fdf3820d3681a77b2ee1688 (patch) | |
tree | b695e169dee1cffcb968cae0ce433eb73679309a /doc | |
parent | 5045f2b792df7d2e78136dff60485a1dc9597ef7 (diff) | |
parent | 1ffb9f197075975a00cd95cddcb39a29b15aed86 (diff) |
Merge pull request #5066 from Radvendii/master
add antiquotations to paths
Diffstat (limited to 'doc')
-rw-r--r-- | doc/manual/src/expressions/language-values.md | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/doc/manual/src/expressions/language-values.md b/doc/manual/src/expressions/language-values.md index ce31029cc..28fa23b58 100644 --- a/doc/manual/src/expressions/language-values.md +++ b/doc/manual/src/expressions/language-values.md @@ -139,6 +139,13 @@ Nix has the following basic data types: environment variable `NIX_PATH` will be searched for the given file or directory name. + Antiquotation is supported in any paths except those in angle brackets. + `./${foo}-${bar}.nix` is a more convenient way of writing + `./. + "/" + foo + "-" + bar + ".nix"` or `./. + "/${foo}-${bar}.nix"`. At + least one slash must appear *before* any antiquotations for this to be + recognized as a path. `a.${foo}/b.${bar}` is a syntactically valid division + operation. `./a.${foo}/b.${bar}` is a path. + - *Booleans* with values `true` and `false`. - The null value, denoted as `null`. |