git.iko.soy/typeable/nixpkgs
on master help sign in
rustc: 1.10.0 -> 1.11.0 and beta/unstable updates.

Give cargo the right name. Fix versioning. rustBeta: -> 2016-08-17 Looks like rustUnstable.rustc needs *exactly* this version.

commit8cd3e1e2bac5d7b8d3ae84a91f1019007f82c483 authorMoritz Ulrich <moritz@tarn-vedra.de> dateWed 24 Aug 2016, 11:56 (10 years ago) parent80660f8
6 files changed+26−76
pkgs/development/compilers/rust/beta.nix+3−4 pkgs/development/compilers/rust/bootstrap.nix+5−5 pkgs/development/compilers/rust/default.nix+9−7 pkgs/development/compilers/rust/head.nix+3−7 pkgs/development/compilers/rust/patches/tcp-stress-test-run-a-smaller-number-of-threads.patch−44 pkgs/development/compilers/rust/rustc.nix+6−9
pkgs/development/compilers/rust/beta.nix+3−4
@@ -3,12 +3,11 @@
33
44rec {
55 rustc = callPackage ./rustc.nix {
6− shortVersion = "beta-1.11.0";
6+ shortVersion = "beta-2016-08-17";
77 forceBundledLLVM = false;
8− needsCmake = true;
98 configureFlags = [ "--release-channel=beta" ];
10− srcRev = "9333c420da0da6291740c313d5af3d620b55b8bc";
11− srcSha = "05z6i4s5jjw3c5ypap6kzxk81bg4dib47h51znvsvcvr0svsnkgs";
9+ srcRev = "822166b842e4d0b32fafc8b077fb927ec281253d";
10+ srcSha = "1zkv7hyjvcj7kvbngf309skgllk6rd7727a6hkvhd3hg8jlz0d00";
1211 patches = [
1312 ./patches/disable-lockfile-check.patch
1413 ] ++ stdenv.lib.optional stdenv.needsPax ./patches/grsec.patch;
pkgs/development/compilers/rust/bootstrap.nix+5−5
@@ -17,13 +17,13 @@ let
1717 # fetch hashes by running `print-hashes.sh 1.9.0`
1818 bootstrapHash =
1919 if stdenv.system == "i686-linux"
20− then "dd4d9bf1b9393867eb18d00431e8fb733894984f2c7b5154bc1b64d045077b45"
20+ then "be93dd2b80a97f2877679950d56990628c6547b953294f16bf6d69c18a39edc0"
2121 else if stdenv.system == "x86_64-linux"
22− then "288ff13efa2577e81c77fc2cb6e2b49b1ed0ceab51b4fa12f7efb87039ac49b7"
22+ then "f189303d52b37c8bb694b9d9739ae73ffa926cbdeffde1d5d6a5c6e811940293"
2323 else if stdenv.system == "i686-darwin"
24− then "4d4d4b256d6bd6ae2527cf61007b2553de200f0a1910b7ad41e4f51d2b21e536"
24+ then "40d4782a58dd5bef22dbbaa7a363f3b42f844628db07205f6435ac934f350061"
2525 else if stdenv.system == "x86_64-darwin"
26− then "d59b5509e69c1cace20a57072e3b3ecefdbfd8c7e95657b0ff2ac10aa1dfebe6"
26+ then "4bb71249f4afd7cee07f63d681f9fcb1b525ee3dfd49722adab7a40024e45af7"
2727 else throw "missing boostrap hash for platform ${stdenv.system}";
2828
2929 needsPatchelf = stdenv.isLinux;
@@ -33,7 +33,7 @@ let
3333 sha256 = bootstrapHash;
3434 };
3535
36− version = "1.9.0";
36+ version = "1.10.0";
3737in
3838
3939rec {
pkgs/development/compilers/rust/default.nix+9−7
@@ -7,15 +7,17 @@ in
77
88rec {
99 rustc = callPackage ./rustc.nix {
10− shortVersion = "1.10.0";
10+ shortVersion = "1.11.0";
1111 isRelease = true;
1212 forceBundledLLVM = false;
1313 configureFlags = [ "--release-channel=stable" ];
14− srcRev = "cfcb716cf0961a7e3a4eceac828d94805cf8140b";
15− srcSha = "15i81ybh32xymmkyz3bkb5bdgi9hx8nb0sh00ac6qba6w8ljpii9";
14+ srcRev = "9b21dcd6a89f38e8ceccb2ede8c9027cb409f6e3";
15+ srcSha = "12djpxhwqvq3262ai9vd096bvriynci2mrwn0dfjrd0w6s0i8viy";
16+
1617 patches = [
1718 ./patches/disable-lockfile-check.patch
1819 ] ++ stdenv.lib.optional stdenv.needsPax ./patches/grsec.patch;
20+
1921 inherit targets;
2022 inherit targetPatches;
2123 inherit targetToolchains;
@@ -27,10 +29,10 @@ rec {
2729 # `http.cainfo` option from .cargo/config which isn't released
2830 # yet.
2931
30− version = "master-2016-07-25";
31− srcRev = "f09ef68cc47956ccc5f99212bdcdd15298c400a0";
32− srcSha = "1r6q9jd0fl6mzhwkvrrcv358q2784hg51dfpy28xgh4n61m7c155";
33− depsSha256 = "1p1ygabg9k9b0azm0mrx8asjzdi35c5zw53iysba198lli6bhdl4";
32+ version = "0.12.0";
33+ srcRev = "6b98d1f8abf5b33c1ca2771d3f5f3bafc3407b93";
34+ srcSha = "0pq6l3yzmh2il6320f6501hvp9iikdxzl34i5b52v93ncpim36bk";
35+ depsSha256 = "1jrwzm9fd15kf2d5zb17q901hx32h711ivcwdpxpmzwq08sjlcvl";
3436
3537 inherit rustc; # the rustc that will be wrapped by cargo
3638 inherit rustPlatform; # used to build cargo
pkgs/development/compilers/rust/head.nix+3−7
@@ -3,17 +3,13 @@
33
44rec {
55 rustc = callPackage ./rustc.nix {
6− shortVersion = "master-1.12.0";
6+ shortVersion = "master-1.13.0";
77 forceBundledLLVM = false;
8− needsCmake = true;
98 configureFlags = [ "--release-channel=nightly" ];
10− srcRev = "d9a911d236cbecb47775276ba51a5f9111bdbc9c";
11− srcSha = "07wybqvnw99fljmcy33vb9iwirmp10cwy47n008p396s7pb852hv";
9+ srcRev = "308824acecf902f2b6a9c1538bde0324804ba68e";
10+ srcSha = "17zv1a27a7w6n3a22brriqx5m6i4s3nsj7mlnpliwghlbz8q7384";
1211 patches = [
1312 ./patches/disable-lockfile-check.patch
14− # Drop this patch after
15− # https://github.com/rust-lang/rust/pull/35140 gets merged
16− ./patches/tcp-stress-test-run-a-smaller-number-of-threads.patch
1713 ] ++ stdenv.lib.optional stdenv.needsPax ./patches/grsec.patch;
1814 inherit targets;
1915 inherit targetPatches;
pkgs/development/compilers/rust/patches/tcp-stress-test-run-a-smaller-number-of-threads.patchdeleted−44
@@ -1,44 +0,0 @@
1−From b6202b5d602ca8216febe8ce9078581faa32955e Mon Sep 17 00:00:00 2001
2−From: Moritz Ulrich <moritz@tarn-vedra.de>
3−Date: Sat, 30 Jul 2016 09:01:13 +0200
4−Subject: [PATCH] tcp-stress-test: Run a smaller number of threads.
5−
6−---
7− src/test/run-pass/tcp-stress.rs | 7 +++++--
8− 1 file changed, 5 insertions(+), 2 deletions(-)
9−
10−diff --git a/src/test/run-pass/tcp-stress.rs b/src/test/run-pass/tcp-stress.rs
11−index dfc8649..df8cdc9 100644
12−--- a/src/test/run-pass/tcp-stress.rs
13−+++ b/src/test/run-pass/tcp-stress.rs
14−@@ -21,6 +21,8 @@ use std::sync::mpsc::channel;
15− use std::time::Duration;
16− use std::thread::{self, Builder};
17−
18−+const TARGET_CNT: usize = 256;
19−+
20− fn main() {
21− // This test has a chance to time out, try to not let it time out
22− thread::spawn(move|| -> () {
23−@@ -42,8 +44,9 @@ fn main() {
24− });
25−
26− let (tx, rx) = channel();
27−+
28− let mut spawned_cnt = 0;
29−- for _ in 0..1000 {
30−+ for _ in 0..TARGET_CNT {
31− let tx = tx.clone();
32− let res = Builder::new().stack_size(64 * 1024).spawn(move|| {
33− match TcpStream::connect(addr) {
34−@@ -66,6 +69,6 @@ fn main() {
35− for _ in 0..spawned_cnt {
36− rx.recv().unwrap();
37− }
38−- assert_eq!(spawned_cnt, 1000);
39−+ assert_eq!(spawned_cnt, TARGET_CNT);
40− process::exit(0);
41− }
42−--
43−2.9.1
44−
pkgs/development/compilers/rust/rustc.nix+6−9
@@ -2,7 +2,6 @@
22, llvm, jemalloc, ncurses, darwin, binutils, rustPlatform, git, cmake, curl
33
44, isRelease ? false
5−, needsCmake ? false
65, shortVersion
76, forceBundledLLVM ? false
87, srcSha, srcRev
@@ -81,7 +80,7 @@ stdenv.mkDerivation {
8180
8281 # Fix the configure script to not require curl as we won't use it
8382 sed -i configure \
84− -e '/probe_need CFG_CURLORWGET/d'
83+ -e '/probe_need CFG_CURL curl/d'
8584
8685 # Fix the use of jemalloc prefixes which our jemalloc doesn't have
8786 # TODO: reenable if we can figure out how to get our jemalloc to work
@@ -92,7 +91,7 @@ stdenv.mkDerivation {
9291 rm -vr src/test/run-make/linker-output-non-utf8/
9392
9493 # Useful debugging parameter
95− #export VERBOSE=1
94+ # export VERBOSE=1
9695 '';
9796
9897 preConfigure = ''
@@ -101,14 +100,12 @@ stdenv.mkDerivation {
101100 configureFlagsArray+=("--infodir=$out/share/info")
102101 '';
103102
104− # New -beta and -unstable unfortunately need cmake for compiling
105− # llvm-rt but don't use it for the normal build. This disables cmake
106− # in Nix.
107− dontUseCmakeConfigure = needsCmake;
103+ # rustc unfortunately need cmake for compiling llvm-rt but doesn't
104+ # use it for the normal build. This disables cmake in Nix.
105+ dontUseCmakeConfigure = true;
108106
109107 # ps is needed for one of the test cases
110− nativeBuildInputs = [ file python2 procps rustPlatform.rust.rustc git ]
111− ++ stdenv.lib.optional needsCmake [ cmake curl ];
108+ nativeBuildInputs = [ file python2 procps rustPlatform.rust.rustc git cmake ];
112109
113110 buildInputs = [ ncurses ] ++ targetToolchains
114111 ++ optional (!forceBundledLLVM) llvmShared;