aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrei Boar <andrey.boar@gmail.com>2022-08-19 11:51:32 +0300
committerAndrei Boar <andrey.boar@gmail.com>2022-08-19 11:51:32 +0300
commit82b867d0b5417ed42485b39b2bacd55fb390d61b (patch)
tree12d74056b5e6515af7ea8d3da15489e7beb73622
parent1c2c1a6e009eff7b19f00a3780891a3197d33e28 (diff)
cover empty string case
-rw-r--r--doc/manual/src/command-ref/env-common.md10
1 files changed, 7 insertions, 3 deletions
diff --git a/doc/manual/src/command-ref/env-common.md b/doc/manual/src/command-ref/env-common.md
index 7b6c05dfb..4846f3a10 100644
--- a/doc/manual/src/command-ref/env-common.md
+++ b/doc/manual/src/command-ref/env-common.md
@@ -46,9 +46,13 @@ Most Nix commands interpret the following environment variables:
If `NIX_PATH` is not set at all, Nix will fall back to the following list in impure and unrestricted evaluation mode:
- 1. `$HOME/.nix-defexpr/channels`
- 2. `nixpkgs=/nix/var/nix/profiles/per-user/root/channels/nixpkgs`
- 3. `/nix/var/nix/profiles/per-user/root/channels`
+ 1. `$HOME/.nix-defexpr/channels`
+ 2. `nixpkgs=/nix/var/nix/profiles/per-user/root/channels/nixpkgs`
+ 3. `/nix/var/nix/profiles/per-user/root/channels`
+
+ If `NIX_PATH` is set to an empty string the above fallback will not happen and building will fail with:
+
+ `error: file 'nixpkgs' was not found in the Nix search path`
- [`NIX_IGNORE_SYMLINK_STORE`]{#env-NIX_IGNORE_SYMLINK_STORE}\
Normally, the Nix store directory (typically `/nix/store`) is not