Added Mozilla's Rust Nightly
This commit is contained in:
17
rust-nightly.nix
Normal file
17
rust-nightly.nix
Normal file
@@ -0,0 +1,17 @@
|
|||||||
|
let
|
||||||
|
moz_overlay =
|
||||||
|
import (builtins.fetchTarball
|
||||||
|
"https://github.com/mozilla/nixpkgs-mozilla/archive/master.tar.gz");
|
||||||
|
nixpkgs = import <nixpkgs> {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
|
||||||
|
'';
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user