1{ stdenv, callPackage }:
2
3callPackage ./generic.nix {
4 shortVersion = "1.3.0";
5 isRelease = true;
6 configureFlags = [ "--release-channel=stable" ];
7 srcSha = "14lhk40n9aslz8h8wj7fas5vsgyrb38b2r319q3hlvplgggdksg8";
8
9 /* Rust is bootstrapped from an earlier built version. We need
10 to fetch these earlier versions, which vary per platform.
11 The shapshot info you want can be found at
12 https://github.com/rust-lang/rust/blob/{$shortVersion}/src/snapshots.txt
13 with the set you want at the top. Make sure this is the latest snapshot
14 for the tagged release and not a snapshot in the current HEAD.
15 */
16
17 snapshotHashLinux686 = "3459275cdf3896f678e225843fa56f0d9fdbabe8";
18 snapshotHashLinux64 = "e451e3bd6e5fcef71e41ae6f3da9fb1cf0e13a0c";
19 snapshotHashDarwin686 = "428944a7984c0988e77909d82ca2ef77d96a1fbd";
20 snapshotHashDarwin64 = "b0515bb7d2892b9a58282fc865fee11a885406d6";
21 snapshotDate = "2015-07-26";
22 snapshotRev = "a5c12f4";
23
24 # cc-ar-opts.patch should be removable in 1.4.0+
25 patches = [ ./patches/remove-uneeded-git.patch ./patches/cc-ar-opts.patch ]
26 ++ stdenv.lib.optional stdenv.needsPax ./patches/grsec.patch;
27}