2019-05-05 20:56:23 +08:00
|
|
|
{ # Use master branch of the overlay by default
|
|
|
|
mozillaOverlay ? import (builtins.fetchTarball https://github.com/mozilla/nixpkgs-mozilla/archive/master.tar.gz),
|
|
|
|
}:
|
|
|
|
|
|
|
|
let
|
|
|
|
pkgs = import <nixpkgs> { overlays = [ mozillaOverlay ]; };
|
|
|
|
in
|
|
|
|
with pkgs;
|
|
|
|
let
|
2019-08-07 01:47:45 +08:00
|
|
|
rustcSrc = fetchgit {
|
|
|
|
url = https://github.com/rust-lang/rust.git;
|
2019-09-26 22:37:19 +08:00
|
|
|
# master of 2019-09-25
|
|
|
|
rev = "37538aa1365d1f8a10770a7d15c95b3167c8db57";
|
|
|
|
sha256 = "1nvddkxwvrsvyx187s5mwj4fwsf26xd4vr6ba1kfy7m2fj7w79hq";
|
2019-08-07 01:47:45 +08:00
|
|
|
fetchSubmodules = true;
|
|
|
|
};
|
2019-05-05 20:56:23 +08:00
|
|
|
targets = [
|
|
|
|
];
|
|
|
|
rust =
|
|
|
|
rustChannelOfTargets "nightly" null targets;
|
|
|
|
rustPlatform = recurseIntoAttrs (makeRustPlatform {
|
2019-08-07 01:47:45 +08:00
|
|
|
rustc = rust // { src = rustcSrc; };
|
2019-05-05 20:56:23 +08:00
|
|
|
cargo = rust;
|
|
|
|
});
|
|
|
|
in {
|
2019-08-07 01:47:45 +08:00
|
|
|
inherit pkgs rustPlatform rustcSrc;
|
2019-05-05 20:56:23 +08:00
|
|
|
}
|