nixpkgs/pkgs/development/compilers/rustc/default.nix

34 lines
1019 B
Nix
Raw Normal View History

2015-07-06 07:21:00 +01:00
{ stdenv, callPackage }:
callPackage ./generic.nix {
2015-08-07 22:46:13 +01:00
shortVersion = "1.2.0";
2015-07-06 07:21:00 +01:00
isRelease = true;
2015-08-07 22:46:13 +01:00
srcSha = "1zq2nhgaxkv1ghi3z2qgff6cylqirn33nphvkjiczlkjfi0pyw16";
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
with the set you want at the top.
*/
# linux-i386
2015-08-07 22:46:13 +01:00
snapshotHashLinux686 = "a6f22e481eabf098cc65bda97bf7e434a1fcc20b";
2015-07-06 07:21:00 +01:00
# linux-x86_64
2015-08-07 22:46:13 +01:00
snapshotHashLinux64 = "5fd8698fdfe953e6c4d86cf4fa1d5f3a0053248c";
2015-07-06 07:21:00 +01:00
# macos-i386
2015-08-07 22:46:13 +01:00
snapshotHashDarwin686 = "9a273324a6b63a40f67a553029c0a9fb692ffd1f";
2015-07-06 07:21:00 +01:00
# macos-x86_64
2015-08-07 22:46:13 +01:00
snapshotHashDarwin64 = "e5b12cb7c179fc98fa905a3c84803645d946a6ae";
2015-07-06 07:21:00 +01:00
2015-08-07 22:46:13 +01:00
snapshotDate = "2015-05-24";
snapshotRev = "ba0e1cd";
2015-07-06 07:21:00 +01:00
patches = [
./patches/stable.patch
2015-07-06 07:21:00 +01:00
] ++ stdenv.lib.optional stdenv.needsPax ./patches/grsec.patch;
configureFlags = [ "--release-channel=stable" ];
}