2016-06-14 12:49:48 +02:00
|
|
|
{ stdenv, callPackage, rustPlatform,
|
|
|
|
targets ? [], targetToolchains ? [], targetPatches ? [] }:
|
|
|
|
|
|
|
|
rec {
|
|
|
|
rustc = callPackage ./rustc.nix {
|
2016-11-25 09:46:40 +01:00
|
|
|
shortVersion = "nightly-2016-11-23";
|
2016-06-14 12:49:48 +02:00
|
|
|
forceBundledLLVM = false;
|
2016-07-31 20:06:01 +02:00
|
|
|
configureFlags = [ "--release-channel=nightly" ];
|
2016-11-25 09:46:40 +01:00
|
|
|
srcRev = "d5814b03e652043be607f96e24709e06c2b55429";
|
|
|
|
srcSha = "0x2vr1mda0mr8q28h96zfpv0f26dyrg8jwxznlh6gk0y0mprgcbr";
|
2016-07-26 16:20:40 +02:00
|
|
|
patches = [
|
2016-11-25 09:46:40 +01:00
|
|
|
./patches/disable-lockfile-check-nightly.patch
|
2016-07-26 16:20:40 +02:00
|
|
|
] ++ stdenv.lib.optional stdenv.needsPax ./patches/grsec.patch;
|
2016-06-14 12:49:48 +02:00
|
|
|
inherit targets;
|
|
|
|
inherit targetPatches;
|
|
|
|
inherit targetToolchains;
|
|
|
|
inherit rustPlatform;
|
|
|
|
};
|
|
|
|
|
|
|
|
cargo = callPackage ./cargo.nix rec {
|
2016-11-25 09:46:40 +01:00
|
|
|
version = "nightly-2016-07-25";
|
2016-08-08 22:21:23 +02:00
|
|
|
srcRev = "f09ef68cc47956ccc5f99212bdcdd15298c400a0";
|
|
|
|
srcSha = "1r6q9jd0fl6mzhwkvrrcv358q2784hg51dfpy28xgh4n61m7c155";
|
2016-11-25 09:46:40 +01:00
|
|
|
depsSha256 = "055ky0lkrcsi976kmvc4lqyv0sjdpcj3jv36kz9hkqq0gip3crjc";
|
2016-08-08 22:21:23 +02:00
|
|
|
|
2016-06-14 12:49:48 +02:00
|
|
|
inherit rustc; # the rustc that will be wrapped by cargo
|
|
|
|
inherit rustPlatform; # used to build cargo
|
|
|
|
};
|
|
|
|
}
|