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