git.iko.soy/typeable/nixpkgs
on master help sign in
Merge pull request #8668 from telotortium/rustc-update-to-1.1.0

rustc: 1.0.0 -> 1.1.0

commit71c16443c7c32cc88b625443ba833ee368937c1d authorRicardo M. Correia <rcorreia@wizy.org> dateSun 12 Jul 2015, 17:19 (11 years ago) parent74f4b0d51972d4
7 files changed+51−32
pkgs/development/compilers/rustc/1.0.0.nix−16 pkgs/development/compilers/rustc/default.nix+33 pkgs/development/compilers/rustc/generic.nix+1−1 pkgs/development/tools/build-managers/cargo/default.nix+4−4 pkgs/development/tools/build-managers/cargo/snapshot.nix+5−5 pkgs/top-level/all-packages.nix+5−3 pkgs/top-level/rust-packages.nix+3−3
pkgs/development/compilers/rustc/1.0.0.nixdeleted−16
@@ -1,16 +0,0 @@
1−{ stdenv, callPackage }:
2−callPackage ./generic.nix {
3− shortVersion = "1.0.0";
4− isRelease = true;
5− srcSha = "14brziw91d3r88fa1kvpvhap5ws4z8h2mas7h6k9lpsc2zl9blak";
6− snapshotHashLinux686 = "1ef82402ed16f5a6d2f87a9a62eaa83170e249ec";
7− snapshotHashLinux64 = "ef2154372e97a3cb687897d027fd51c8f2c5f349";
8− snapshotHashDarwin686 = "0310b1a970f2da7e61770fd14dbbbdca3b518234";
9− snapshotHashDarwin64 = "5f35d9c920b8083a7420ef8cf5b00d5ef3085dfa";
10− snapshotDate = "2015-03-27";
11− snapshotRev = "5520801";
12− patches = [
13− ./patches/beta.patch
14− ] ++ stdenv.lib.optional stdenv.needsPax ./patches/grsec.patch;
15− configureFlags = [ "--release-channel=stable" ];
16−}
pkgs/development/compilers/rustc/default.nixnew file+33
@@ -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+}
pkgs/development/compilers/rustc/generic.nix+1−1
@@ -62,7 +62,7 @@ let version = if isRelease then
6262 meta = with stdenv.lib; {
6363 homepage = http://www.rust-lang.org/;
6464 description = "A safe, concurrent, practical language";
65− maintainers = with maintainers; [ madjar cstrahan wizeman globin ];
65+ maintainers = with maintainers; [ madjar cstrahan wizeman globin havvy ];
6666 license = [ licenses.mit licenses.asl20 ];
6767 platforms = platforms.linux;
6868 };
pkgs/development/tools/build-managers/cargo/default.nix+4−4
@@ -1,7 +1,7 @@
11{ stdenv, fetchgit, rustPlatform, file, curl, python, pkgconfig, openssl
22, cmake, zlib }:
33
4−with ((import ./common.nix) { inherit stdenv; version = "2015-05-13"; });
4+with ((import ./common.nix) { inherit stdenv; version = "0.3.0"; });
55
66with rustPlatform;
77
@@ -10,12 +10,12 @@ buildRustPackage rec {
1010
1111 src = fetchgit {
1212 url = "https://github.com/rust-lang/cargo.git";
13− rev = "d814fcbf8efda3027d54c09e11aa7eaf0006a83c";
14− sha256 = "0sppd3x2cacmbnypcjip44amnh66lrrbwwzsbz8rqf3nq2ah496x";
13+ rev = "refs/tags/0.3.0";
14+ sha256 = "1ckb2xd7nm8357imw6b1ci2ar8grnihzan94kvmjrijq6sz8yv9i";
1515 leaveDotGit = true;
1616 };
1717
18− depsSha256 = "1b0mpdxmp7inkg59n2phjwzpz5gx22wqg9rfd1s01a5ylara37jw";
18+ depsSha256 = "1sgdr2akd9xrfmf5g0lbf842b2pdj1ymxk37my0cf2x349rjsf0w";
1919
2020 buildInputs = [ file curl pkgconfig python openssl cmake zlib ];
2121
pkgs/development/tools/build-managers/cargo/snapshot.nix+5−5
@@ -2,19 +2,19 @@
22
33/* Cargo binary snapshot */
44
5−let snapshotDate = "2015-04-02";
5+let snapshotDate = "2015-06-17";
66in
77
88with ((import ./common.nix) { inherit stdenv; version = "snapshot-${snapshotDate}"; });
99
1010let snapshotHash = if stdenv.system == "i686-linux"
11− then "ba6c162680d5509d89ba2363d7cae2047f40c034"
11+ then "g2h9l35123r72hqdwayd9h79kspfb4y9"
1212 else if stdenv.system == "x86_64-linux"
13− then "94f715c9a52809a639f2ce6f8b1d5215a0c272b5"
13+ then "fnx2rf1j8zvrplcc7xzf89czn0hf3397"
1414 else if stdenv.system == "i686-darwin"
15− then "cf333f16f89bfd50e8ce461c6f81ca30d33f7f73"
15+ then "3viz3fi2jx18qjwrc90nfhm9cik59my6"
1616 else if stdenv.system == "x86_64-darwin"
17− then "1f7008a6ec860e2bc7580e71bdf320ac518ddeb8"
17+ then "h2bf3db4vwz5cjjkn98lxayivdc6dflp"
1818 else throw "no snapshot for platform ${stdenv.system}";
1919 snapshotName = "cargo-nightly-${platform}.tar.gz";
2020in
pkgs/top-level/all-packages.nix+5−3
@@ -4653,7 +4653,7 @@ let
46534653 };
46544654
46554655 rustcMaster = callPackage ../development/compilers/rustc/head.nix {};
4656− rustc = callPackage ../development/compilers/rustc/1.0.0.nix {};
4656+ rustc = callPackage ../development/compilers/rustc/default.nix {};
46574657
46584658 rustPlatform = rustStable;
46594659
@@ -4661,7 +4661,7 @@ let
46614661 rustUnstable = recurseIntoAttrs (makeRustPlatform rustcMaster cargo rustUnstable);
46624662
46634663 # rust platform to build cargo itself (with cargoSnapshot)
4664− rustCargoPlatform = makeRustPlatform rustcMaster cargoSnapshot rustCargoPlatform;
4664+ rustCargoPlatform = makeRustPlatform rustc cargoSnapshot.cargo rustCargoPlatform;
46654665
46664666 makeRustPlatform = rustc: cargo: self:
46674667 let
@@ -5316,7 +5316,9 @@ let
53165316 rustPlatform = rustCargoPlatform;
53175317 };
53185318
5319− cargoSnapshot = callPackage ../development/tools/build-managers/cargo/snapshot.nix { };
5319+ cargoSnapshot = {
5320+ cargo = callPackage ../development/tools/build-managers/cargo/snapshot.nix { };
5321+ };
53205322
53215323 casperjs = callPackage ../development/tools/casperjs { };
53225324
pkgs/top-level/rust-packages.nix+3−3
@@ -7,15 +7,15 @@
77{ runCommand, fetchFromGitHub, git }:
88
99let
10− version = "2015-06-12";
11− rev = "020d1f3344ed8e7bd8fa740372bb7f03675fa708";
10+ version = "2015-07-07";
11+ rev = "fd9e3e4a350f5df0d975913bcc29d2051a509199";
1212
1313 src = fetchFromGitHub {
1414 inherit rev;
1515
1616 owner = "rust-lang";
1717 repo = "crates.io-index";
18− sha256 = "0vkr0k1ga0jskvl8ss7m5m66b4wwi7ibjj5qw0x0khcg1b5skkq6";
18+ sha256 = "1vm28gfq4fmialz5ab8cxk5q1kdf6hlg3ni41qpy9k61pp9bqdwr";
1919 };
2020
2121in