2016-06-14 11:49:48 +01:00
|
|
|
{ stdenv, callPackage, recurseIntoAttrs, makeRustPlatform,
|
|
|
|
targets ? [], targetToolchains ? [], targetPatches ? [] }:
|
|
|
|
|
|
|
|
let
|
2016-07-09 08:01:49 +01:00
|
|
|
rustPlatform = recurseIntoAttrs (makeRustPlatform (callPackage ./bootstrap.nix {}));
|
2016-06-14 11:49:48 +01:00
|
|
|
in
|
|
|
|
|
|
|
|
rec {
|
|
|
|
rustc = callPackage ./rustc.nix {
|
2016-08-24 10:56:02 +01:00
|
|
|
shortVersion = "1.11.0";
|
2016-06-14 11:49:48 +01:00
|
|
|
isRelease = true;
|
|
|
|
forceBundledLLVM = false;
|
|
|
|
configureFlags = [ "--release-channel=stable" ];
|
2016-08-24 10:56:02 +01:00
|
|
|
srcRev = "9b21dcd6a89f38e8ceccb2ede8c9027cb409f6e3";
|
|
|
|
srcSha = "12djpxhwqvq3262ai9vd096bvriynci2mrwn0dfjrd0w6s0i8viy";
|
|
|
|
|
2016-07-10 21:45:58 +01:00
|
|
|
patches = [
|
|
|
|
./patches/disable-lockfile-check.patch
|
|
|
|
] ++ stdenv.lib.optional stdenv.needsPax ./patches/grsec.patch;
|
2016-08-24 10:56:02 +01:00
|
|
|
|
2016-06-14 11:49:48 +01:00
|
|
|
inherit targets;
|
|
|
|
inherit targetPatches;
|
|
|
|
inherit targetToolchains;
|
2016-07-10 21:45:58 +01:00
|
|
|
inherit rustPlatform;
|
2016-06-14 11:49:48 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
cargo = callPackage ./cargo.nix rec {
|
2016-08-24 10:56:02 +01:00
|
|
|
version = "0.12.0";
|
|
|
|
srcRev = "6b98d1f8abf5b33c1ca2771d3f5f3bafc3407b93";
|
|
|
|
srcSha = "0pq6l3yzmh2il6320f6501hvp9iikdxzl34i5b52v93ncpim36bk";
|
|
|
|
depsSha256 = "1jrwzm9fd15kf2d5zb17q901hx32h711ivcwdpxpmzwq08sjlcvl";
|
2016-08-08 14:55:26 +01:00
|
|
|
|
2016-06-14 11:49:48 +01:00
|
|
|
inherit rustc; # the rustc that will be wrapped by cargo
|
|
|
|
inherit rustPlatform; # used to build cargo
|
|
|
|
};
|
|
|
|
}
|