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/languages-frameworks | |
parent | a29cf4aece7ed0f497f600faec9614c6feb5159b (diff) | |
download | nixlib-b414f942e0379771422fd6e203a558ab7151eac5.tar nixlib-b414f942e0379771422fd6e203a558ab7151eac5.tar.gz nixlib-b414f942e0379771422fd6e203a558ab7151eac5.tar.bz2 nixlib-b414f942e0379771422fd6e203a558ab7151eac5.tar.lz nixlib-b414f942e0379771422fd6e203a558ab7151eac5.tar.xz nixlib-b414f942e0379771422fd6e203a558ab7151eac5.tar.zst nixlib-b414f942e0379771422fd6e203a558ab7151eac5.zip |
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/languages-frameworks')
-rw-r--r-- | doc/languages-frameworks/python.section.md | 4 | ||||
-rw-r--r-- | doc/languages-frameworks/ruby.section.md | 3 |
2 files changed, 4 insertions, 3 deletions
diff --git a/doc/languages-frameworks/python.section.md b/doc/languages-frameworks/python.section.md index 2ced6d69edd5..e4a3a898f001 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 f1953500fa32..3a4c94de9292 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> {}; |