summary refs log tree commit diff
path: root/doc/languages-frameworks/rust.section.md
diff options
context:
space:
mode:
authorMauro Bieg <mb21@users.noreply.github.com>2019-08-26 14:38:18 +0200
committerGitHub <noreply@github.com>2019-08-26 14:38:18 +0200
commit2ab19787ce2ac77f7b33e85247b9b28159b4bb95 (patch)
treea8dd751b5108ba913edb95f0c0d5f683deece835 /doc/languages-frameworks/rust.section.md
parenta859d0cf6c79ca90f2e65130a3895050a36b4f67 (diff)
downloadnixpkgs-2ab19787ce2ac77f7b33e85247b9b28159b4bb95.tar
nixpkgs-2ab19787ce2ac77f7b33e85247b9b28159b4bb95.tar.gz
nixpkgs-2ab19787ce2ac77f7b33e85247b9b28159b4bb95.tar.bz2
nixpkgs-2ab19787ce2ac77f7b33e85247b9b28159b4bb95.tar.lz
nixpkgs-2ab19787ce2ac77f7b33e85247b9b28159b4bb95.tar.xz
nixpkgs-2ab19787ce2ac77f7b33e85247b9b28159b4bb95.tar.zst
nixpkgs-2ab19787ce2ac77f7b33e85247b9b28159b4bb95.zip
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 2d9338f2e89..fe2a71c35ef 100644
--- a/doc/languages-frameworks/rust.section.md
+++ b/doc/languages-frameworks/rust.section.md
@@ -384,12 +384,13 @@ in the `~/.config/nixpkgs/overlays` directory.
 
 The latest 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