1{ stdenv, callPackage }:
2callPackage ./generic.nix {
3 shortVersion = "1.2.0";
4 isRelease = true;
5 srcSha = "1zq2nhgaxkv1ghi3z2qgff6cylqirn33nphvkjiczlkjfi0pyw16";
6
7 /* Rust is bootstrapped from an earlier built version. We need
8 to fetch these earlier versions, which vary per platform.
9 The shapshot info you want can be found at
10 https://github.com/rust-lang/rust/blob/{$shortVersion}/src/snapshots.txt
11 with the set you want at the top.
12 */
13
14 # linux-i386
15 snapshotHashLinux686 = "a6f22e481eabf098cc65bda97bf7e434a1fcc20b";
16
17 # linux-x86_64
18 snapshotHashLinux64 = "5fd8698fdfe953e6c4d86cf4fa1d5f3a0053248c";
19
20 # macos-i386
21 snapshotHashDarwin686 = "9a273324a6b63a40f67a553029c0a9fb692ffd1f";
22
23 # macos-x86_64
24 snapshotHashDarwin64 = "e5b12cb7c179fc98fa905a3c84803645d946a6ae";
25
26 snapshotDate = "2015-05-24";
27 snapshotRev = "ba0e1cd";
28
29 patches = [
30 ./patches/stable.patch
31 ] ++ stdenv.lib.optional stdenv.needsPax ./patches/grsec.patch;
32 configureFlags = [ "--release-channel=stable" ];
33}