diff options
author | Taeer Bar-Yam <taeer@bar-yam.me> | 2021-08-31 08:17:17 -0400 |
---|---|---|
committer | Taeer Bar-Yam <taeer@bar-yam.me> | 2021-08-31 08:17:17 -0400 |
commit | b2beb97f2ae5fbade5e5ac0763ffbefdc4057ee8 (patch) | |
tree | ca69b4553e707c6c376312d532deebca11327ec5 /doc/manual | |
parent | 9da8f5e25d835e3bd1cc4280f2b69cfa4ab8d774 (diff) |
add documentation for path antiquotations
Diffstat (limited to 'doc/manual')
-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`. |