diff options
author | asymmetric <lorenzo@mailbox.org> | 2023-09-14 17:09:39 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-09-14 17:09:39 +0200 |
commit | b414f942e0379771422fd6e203a558ab7151eac5 (patch) | |
tree | 63ee37fae6e480fc804b1957c827822f9b75cfc7 /doc | |
parent | a29cf4aece7ed0f497f600faec9614c6feb5159b (diff) |
doc: link, instead of just mentioning, Nix manual (#255126)
Instead of just telling the reader to go find the relevant section of the Nix manual, let's just link to it. Yay hypertext!
Diffstat (limited to 'doc')
-rw-r--r-- | doc/languages-frameworks/python.section.md | 4 | ||||
-rw-r--r-- | doc/languages-frameworks/ruby.section.md | 3 | ||||
-rw-r--r-- | doc/stdenv/meta.chapter.md | 2 | ||||
-rw-r--r-- | doc/using/overlays.chapter.md | 2 |
4 files changed, 6 insertions, 5 deletions
diff --git a/doc/languages-frameworks/python.section.md b/doc/languages-frameworks/python.section.md index 2ced6d69edd52..e4a3a898f001d 100644 --- a/doc/languages-frameworks/python.section.md +++ b/doc/languages-frameworks/python.section.md @@ -716,8 +716,8 @@ We've now seen how to create an ad-hoc temporary shell session, and how to create a single script with Python dependencies, but in the course of normal development we're usually working in an entire package repository. -As explained in the Nix manual, `nix-shell` can also load an expression from a -`.nix` file. Say we want to have Python 3.11, `numpy` and `toolz`, like before, +As explained [in the `nix-shell` section](https://nixos.org/manual/nix/stable/command-ref/nix-shell) of the Nix manual, `nix-shell` can also load an expression from a `.nix` file. +Say we want to have Python 3.11, `numpy` and `toolz`, like before, in an environment. We can add a `shell.nix` file describing our dependencies: ```nix diff --git a/doc/languages-frameworks/ruby.section.md b/doc/languages-frameworks/ruby.section.md index f1953500fa329..3a4c94de92923 100644 --- a/doc/languages-frameworks/ruby.section.md +++ b/doc/languages-frameworks/ruby.section.md @@ -32,7 +32,8 @@ Again, it's possible to launch the interpreter from the shell. The Ruby interpre #### Load Ruby environment from `.nix` expression {#load-ruby-environment-from-.nix-expression} -As explained in the Nix manual, `nix-shell` can also load an expression from a `.nix` file. Say we want to have Ruby 2.6, `nokogori`, and `pry`. Consider a `shell.nix` file with: +As explained [in the `nix-shell` section](https://nixos.org/manual/nix/stable/command-ref/nix-shell) of the Nix manual, `nix-shell` can also load an expression from a `.nix` file. +Say we want to have Ruby 2.6, `nokogori`, and `pry`. Consider a `shell.nix` file with: ```nix with import <nixpkgs> {}; diff --git a/doc/stdenv/meta.chapter.md b/doc/stdenv/meta.chapter.md index b05dcd4c0a99e..c187f0602a1e1 100644 --- a/doc/stdenv/meta.chapter.md +++ b/doc/stdenv/meta.chapter.md @@ -75,7 +75,7 @@ The name of the main binary for the package. This affects the binary `nix run` e ### `priority` {#var-meta-priority} -The *priority* of the package, used by `nix-env` to resolve file name conflicts between packages. See the Nix manual page for `nix-env` for details. Example: `"10"` (a low-priority package). +The *priority* of the package, used by `nix-env` to resolve file name conflicts between packages. See the [manual page for `nix-env`](https://nixos.org/manual/nix/stable/command-ref/nix-env) for details. Example: `"10"` (a low-priority package). ### `platforms` {#var-meta-platforms} diff --git a/doc/using/overlays.chapter.md b/doc/using/overlays.chapter.md index a51aa9ee8fc54..6ee52215a4e18 100644 --- a/doc/using/overlays.chapter.md +++ b/doc/using/overlays.chapter.md @@ -24,7 +24,7 @@ The list of overlays is determined as follows. 2. Otherwise, if the Nix path entry `<nixpkgs-overlays>` exists, we look for overlays at that path, as described below. - See the section on `NIX_PATH` in the Nix manual for more details on how to set a value for `<nixpkgs-overlays>.` + See the [section on `NIX_PATH`](https://nixos.org/manual/nix/stable/command-ref/env-common.html#env-NIX_PATH) in the Nix manual for more details on how to set a value for `<nixpkgs-overlays>.` 3. If one of `~/.config/nixpkgs/overlays.nix` and `~/.config/nixpkgs/overlays/` exists, then we look for overlays at that path, as described below. It is an error if both exist. |