@@ -0,0 +1,33 @@
1+{ stdenv, callPackage }:
2+callPackage ./generic.nix {
3+ shortVersion = "1.1.0";
4+ isRelease = true;
5+ srcSha = "0lsfrclj5imxy6129ggya7rb2h04cgqq53f75z2jv40y5xk25sy8";
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 = "0bc8cffdce611fb71fd7d3d8e7cdbfaf748a4f16";
16+
17+ # linux-x86_64
18+ snapshotHashLinux64 = "94089740e48167c5975c92c139ae9c286764012f";
19+
20+ # macos-i386
21+ snapshotHashDarwin686 = "54cc35e76497e6e94fddf38d6e40e9d168491ddb";
22+
23+ # macos-x86_64
24+ snapshotHashDarwin64 = "43a1c1fba0d1dfee4c2ca310d506f8f5f51b3f6f";
25+
26+ snapshotDate = "2015-04-27";
27+ snapshotRev = "857ef6e";
28+
29+ patches = [
30+ ./patches/beta.patch
31+ ] ++ stdenv.lib.optional stdenv.needsPax ./patches/grsec.patch;
32+ configureFlags = [ "--release-channel=stable" ];
33+}