git.iko.soy/typeable/nixpkgs
on master help sign in
Docs: clarify Rust overlay on non-NixOS
commit2ab19787ce2ac77f7b33e85247b9b28159b4bb95 authorMauro Bieg <mb21@users.noreply.github.com> dateMon 26 Aug 2019, 14:38 (7 years ago) parenta859d0c
1 file changed+3−2
doc/languages-frameworks/rust.section.md+3−2
doc/languages-frameworks/rust.section.md+3−2
@@ -384,12 +384,13 @@ in the `~/.config/nixpkgs/overlays` directory.
384384
385385The latest version can be installed with the following command:
386386
387− $ nix-env -Ai nixos.latest.rustChannels.stable.rust
387+ $ nix-env -Ai nixpkgs.latest.rustChannels.stable.rust
388388
389389Or using the attribute with nix-shell:
390390
391− $ nix-shell -p nixos.latest.rustChannels.stable.rust
391+ $ nix-shell -p nixpkgs.latest.rustChannels.stable.rust
392392
393+Substitute the `nixpkgs` prefix with `nixos` on NixOS.
393394To install the beta or nightly channel, "stable" should be substituted by
394395"nightly" or "beta", or
395396use the function provided by this overlay to pull a version based on a