2015-07-06 07:21:00 +01:00
|
|
|
{ stdenv, callPackage }:
|
2015-09-23 05:18:07 +01:00
|
|
|
|
2015-07-06 07:21:00 +01:00
|
|
|
callPackage ./generic.nix {
|
2015-10-31 02:40:35 +00:00
|
|
|
shortVersion = "1.4.0";
|
2015-07-06 07:21:00 +01:00
|
|
|
isRelease = true;
|
2015-10-31 02:40:35 +00:00
|
|
|
forceBundledLLVM = false;
|
2015-09-23 05:18:07 +01:00
|
|
|
configureFlags = [ "--release-channel=stable" ];
|
2015-10-31 02:40:35 +00:00
|
|
|
srcSha = "13wpi9nb3h6wwck2mxhza85fahzcwgas00w8m25086v34dha4dp1";
|
2015-07-06 07:21:00 +01:00
|
|
|
|
|
|
|
/* Rust is bootstrapped from an earlier built version. We need
|
|
|
|
to fetch these earlier versions, which vary per platform.
|
|
|
|
The shapshot info you want can be found at
|
|
|
|
https://github.com/rust-lang/rust/blob/{$shortVersion}/src/snapshots.txt
|
2015-09-23 05:18:07 +01:00
|
|
|
with the set you want at the top. Make sure this is the latest snapshot
|
|
|
|
for the tagged release and not a snapshot in the current HEAD.
|
2015-07-06 07:21:00 +01:00
|
|
|
*/
|
|
|
|
|
2015-10-31 02:40:35 +00:00
|
|
|
snapshotHashLinux686 = "e2553bf399cd134a08ef3511a0a6ab0d7a667216";
|
|
|
|
snapshotHashLinux64 = "7df8ba9dec63ec77b857066109d4b6250f3d222f";
|
|
|
|
snapshotHashDarwin686 = "29750870c82a0347f8b8b735a4e2e0da26f5098d";
|
|
|
|
snapshotHashDarwin64 = "c9f2c588238b4c6998190c3abeb33fd6164099a2";
|
|
|
|
snapshotDate = "2015-08-11";
|
|
|
|
snapshotRev = "1af31d4";
|
2015-07-06 07:21:00 +01:00
|
|
|
|
2015-09-23 05:18:07 +01:00
|
|
|
# cc-ar-opts.patch should be removable in 1.4.0+
|
2015-10-31 02:40:35 +00:00
|
|
|
patches = [ ./patches/remove-uneeded-git.patch ]
|
2015-09-23 05:18:07 +01:00
|
|
|
++ stdenv.lib.optional stdenv.needsPax ./patches/grsec.patch;
|
2015-07-06 07:21:00 +01:00
|
|
|
}
|