aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEelco Dolstra <edolstra@gmail.com>2022-12-12 12:43:44 +0100
committerGitHub <noreply@github.com>2022-12-12 12:43:44 +0100
commit037d5c4299354508cd33c0c5e5c382d7dd2431e4 (patch)
tree311ffcdf6c910f4815e044b047bf95118f1d9f9d
parent786402365e9c819235636d9300bd25c362a29db7 (diff)
Manual improvements
Co-authored-by: Valentin Gagarin <valentin.gagarin@tweag.io>
-rw-r--r--doc/manual/src/command-ref/env-common.md2
-rw-r--r--src/libcmd/common-eval-args.cc4
2 files changed, 3 insertions, 3 deletions
diff --git a/doc/manual/src/command-ref/env-common.md b/doc/manual/src/command-ref/env-common.md
index 6947dbf4c..34a3179a8 100644
--- a/doc/manual/src/command-ref/env-common.md
+++ b/doc/manual/src/command-ref/env-common.md
@@ -7,7 +7,7 @@ Most Nix commands interpret the following environment variables:
`nix-shell`. It can have the values `pure` or `impure`.
- [`NIX_PATH`]{#env-NIX_PATH}\
- A colon-separated list of directories used to look up Nix
+ A colon-separated list of directories used to look up the location of Nix
expressions enclosed in angle brackets (i.e., `<path>`),
e.g. `/home/eelco/Dev:/etc/nixos`. It can be extended using the
`-I` option. For more information about the semantics of the Nix
diff --git a/src/libcmd/common-eval-args.cc b/src/libcmd/common-eval-args.cc
index 2c94d7e6c..53595cea6 100644
--- a/src/libcmd/common-eval-args.cc
+++ b/src/libcmd/common-eval-args.cc
@@ -34,8 +34,8 @@ MixEvalArgs::MixEvalArgs()
.shortName = 'I',
.description = R"(
Add *path* to the Nix search path. The Nix search path is
- initialized from the colon-separated `NIX_PATH` environment
- variable, and is used to look up Nix expressions enclosed in angle
+ initialized from the colon-separated [`NIX_PATH`](./env-common.md#env-NIX_PATH) environment
+ variable, and is used to look up the location of Nix expressions using [paths](../language/values.md#type-path) enclosed in angle
brackets (i.e., `<nixpkgs>`). For instance, if the Nix search path
consists of the entries