Docs: clarify Rust overlay on non-NixOS

This commit is contained in:
Mauro Bieg 2019-08-26 14:38:18 +02:00 committed by GitHub
parent a859d0cf6c
commit 2ab19787ce
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -384,12 +384,13 @@ in the `~/.config/nixpkgs/overlays` directory.
The latest version can be installed with the following command: 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: 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