summary refs log tree commit diff
path: root/doc/languages-frameworks/rust.section.md
diff options
context:
space:
mode:
authorJörg Thalheim <Mic92@users.noreply.github.com>2020-11-28 14:29:04 +0100
committerGitHub <noreply@github.com>2020-11-28 14:29:04 +0100
commit4844ca43d864f1e166ee2d900840a2cb3249ac48 (patch)
tree6485dfb90d56cfb99d8dbb58157aad743afd0409 /doc/languages-frameworks/rust.section.md
parente308121c34006aab10afd8967fca4eb8a35b6a1b (diff)
parent2ab19787ce2ac77f7b33e85247b9b28159b4bb95 (diff)
downloadnixpkgs-4844ca43d864f1e166ee2d900840a2cb3249ac48.tar
nixpkgs-4844ca43d864f1e166ee2d900840a2cb3249ac48.tar.gz
nixpkgs-4844ca43d864f1e166ee2d900840a2cb3249ac48.tar.bz2
nixpkgs-4844ca43d864f1e166ee2d900840a2cb3249ac48.tar.lz
nixpkgs-4844ca43d864f1e166ee2d900840a2cb3249ac48.tar.xz
nixpkgs-4844ca43d864f1e166ee2d900840a2cb3249ac48.tar.zst
nixpkgs-4844ca43d864f1e166ee2d900840a2cb3249ac48.zip
Merge pull request #67496 from mb21/patch-1
Docs: clarify Rust overlay on non-NixOS
Diffstat (limited to 'doc/languages-frameworks/rust.section.md')
-rw-r--r--doc/languages-frameworks/rust.section.md5
1 files changed, 3 insertions, 2 deletions
diff --git a/doc/languages-frameworks/rust.section.md b/doc/languages-frameworks/rust.section.md
index 400f39c345c..dfa1d8dab9c 100644
--- a/doc/languages-frameworks/rust.section.md
+++ b/doc/languages-frameworks/rust.section.md
@@ -524,12 +524,13 @@ For example, you might want to add `latest.rustChannels.stable.rust` to the list
 
 Imperatively, the latest stable version can be installed with the following command:
 
-    $ nix-env -Ai nixos.latest.rustChannels.stable.rust
+    $ nix-env -Ai nixpkgs.latest.rustChannels.stable.rust
 
 Or using the attribute with nix-shell:
 
-    $ nix-shell -p nixos.latest.rustChannels.stable.rust
+    $ nix-shell -p nixpkgs.latest.rustChannels.stable.rust
 
+Substitute the `nixpkgs` prefix with `nixos` on NixOS.
 To install the beta or nightly channel, "stable" should be substituted by
 "nightly" or "beta", or
 use the function provided by this overlay to pull a version based on a