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-08-19 04:16:47 +08:00
|
|
|
# master of 2019-08-18
|
|
|
|
rev = "ea52be482ab4945fda63cb65b6a198309a041e3c";
|
|
|
|
sha256 = "1spifrkvyyrh1gazqrby29fjqsdbwvajv9k9f6mk2ldrdghlsd21";
|
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
|
|
|
}
|