Merge pull request #67496 from mb21/patch-1
Docs: clarify Rust overlay on non-NixOS
This commit is contained in:
commit
4844ca43d8
|
@ -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:
|
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:
|
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
|
To install the beta or nightly channel, "stable" should be substituted by
|
||||||
"nightly" or "beta", or
|
"nightly" or "beta", or
|
||||||
use the function provided by this overlay to pull a version based on a
|
use the function provided by this overlay to pull a version based on a
|
||||||
|
|
Loading…
Reference in New Issue