aboutsummaryrefslogtreecommitdiff
path: root/doc/manual
diff options
context:
space:
mode:
authorEelco Dolstra <edolstra@gmail.com>2021-09-01 12:55:04 +0200
committerGitHub <noreply@github.com>2021-09-01 12:55:04 +0200
commit7ee639f9db987a442fdf3820d3681a77b2ee1688 (patch)
treeb695e169dee1cffcb968cae0ce433eb73679309a /doc/manual
parent5045f2b792df7d2e78136dff60485a1dc9597ef7 (diff)
parent1ffb9f197075975a00cd95cddcb39a29b15aed86 (diff)
Merge pull request #5066 from Radvendii/master
add antiquotations to paths
Diffstat (limited to 'doc/manual')
-rw-r--r--doc/manual/src/expressions/language-values.md7
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`.