diff --git a/rust-nightly.nix b/rust-nightly.nix new file mode 100644 index 0000000..4bc17a9 --- /dev/null +++ b/rust-nightly.nix @@ -0,0 +1,17 @@ +let + moz_overlay = + import (builtins.fetchTarball + "https://github.com/mozilla/nixpkgs-mozilla/archive/master.tar.gz"); + nixpkgs = import {overlays = [moz_overlay];}; +in + with nixpkgs; + stdenv.mkDerivation { + name = "moz_overlay_shell"; + buildInputs = [ + # to use the latest nightly: + nixpkgs.latest.rustChannels.nightly.rust + ]; + shellHook = '' + exec zsh + ''; + }