doc/values: Refer to base directory definition

This commit is contained in:
Robert Hensing 2024-04-19 15:05:40 +02:00
parent 020edac1ca
commit 038573279c

View File

@ -97,7 +97,7 @@
Paths are the preferred type for referring to local files. Paths are the preferred type for referring to local files.
This is thanks to the following properties: This is thanks to the following properties:
- Path values are always in a canonical form, so that you are relieved from trailing slashes, `.` and `..`. - Path values are always in a canonical form, so that you are relieved from trailing slashes, `.` and `..`.
- Path literals are automatically resolved relative to the location of the Nix expression file that contains them. - Path literals are automatically resolved [relative to the file](@docroot@/glossary.md#gloss-base-directory).
- Path values are automatically copied into the Nix store when used in a string interpolation or concatenation. - Path values are automatically copied into the Nix store when used in a string interpolation or concatenation.
- Tooling can recognize path literals and provide additional features, such as autocompletion, refactoring automation and jump-to-file. - Tooling can recognize path literals and provide additional features, such as autocompletion, refactoring automation and jump-to-file.