Created
May 15, 2019 08:02
-
-
Save usami/d9f122da4a7fbe8bf575e07723c6ba4a to your computer and use it in GitHub Desktop.
default.nix for cs140e Rust
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 = "rust-env"; | |
nativeBuildInputs = [ | |
]; | |
buildInputs = [ | |
(nixpkgs.rustChannelOf { date = "2018-01-09"; channel = "nightly"; }).rust | |
]; | |
RUST_BACKTRACE = 1; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment