Skip to content

Instantly share code, notes, and snippets.

@usami
Created May 15, 2019 08:02
Show Gist options
  • Save usami/d9f122da4a7fbe8bf575e07723c6ba4a to your computer and use it in GitHub Desktop.
Save usami/d9f122da4a7fbe8bf575e07723c6ba4a to your computer and use it in GitHub Desktop.
default.nix for cs140e Rust
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