git.iko.soy/typeable/nixpkgs
on master help sign in
Merge pull request #67496 from mb21/patch-1

Docs: clarify Rust overlay on non-NixOS

commit4844ca43d864f1e166ee2d900840a2cb3249ac48 authorJörg Thalheim <Mic92@users.noreply.github.com> dateSat 28 Nov 2020, 14:29 (6 years ago) parente3081212ab1978
1 file changed+3−2
doc/languages-frameworks/rust.section.md+3−2
doc/languages-frameworks/rust.section.md+3−2
@@ -524,12 +524,13 @@ For example, you might want to add `latest.rustChannels.stable.rust` to the list
524524
525525Imperatively, the latest stable version can be installed with the following command:
526526
527− $ nix-env -Ai nixos.latest.rustChannels.stable.rust
527+ $ nix-env -Ai nixpkgs.latest.rustChannels.stable.rust
528528
529529Or using the attribute with nix-shell:
530530
531− $ nix-shell -p nixos.latest.rustChannels.stable.rust
531+ $ nix-shell -p nixpkgs.latest.rustChannels.stable.rust
532532
533+Substitute the `nixpkgs` prefix with `nixos` on NixOS.
533534To install the beta or nightly channel, "stable" should be substituted by
534535"nightly" or "beta", or
535536use the function provided by this overlay to pull a version based on a