@@ -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