diff options
author | zimbatm <zimbatm@zimbatm.com> | 2017-10-04 17:41:16 +0100 |
---|---|---|
committer | zimbatm <zimbatm@zimbatm.com> | 2017-10-23 00:30:46 +0100 |
commit | 7bd191df6a861e02d5bf2b36a03f6dc70e3e6bfd (patch) | |
tree | 74f4cf8cc3f2b29727ccbda906ae38cf818e9d0c /pkgs/development/compilers/rust/bootstrap.nix | |
parent | e30e2010277da6814c6828b199c778774b3ba00a (diff) | |
download | nixlib-7bd191df6a861e02d5bf2b36a03f6dc70e3e6bfd.tar nixlib-7bd191df6a861e02d5bf2b36a03f6dc70e3e6bfd.tar.gz nixlib-7bd191df6a861e02d5bf2b36a03f6dc70e3e6bfd.tar.bz2 nixlib-7bd191df6a861e02d5bf2b36a03f6dc70e3e6bfd.tar.lz nixlib-7bd191df6a861e02d5bf2b36a03f6dc70e3e6bfd.tar.xz nixlib-7bd191df6a861e02d5bf2b36a03f6dc70e3e6bfd.tar.zst nixlib-7bd191df6a861e02d5bf2b36a03f6dc70e3e6bfd.zip |
rust: 1.17.0 -> 1.20.0
simplify the boostrap hashes a bit build with bundled llvm: the rust project has forked the llvm compiler to solve some issues. With pkgs.llvm the test suite fails. See https://github.com/rust-lang/rust/pull/43026 And PR #30088
Diffstat (limited to 'pkgs/development/compilers/rust/bootstrap.nix')
-rw-r--r-- | pkgs/development/compilers/rust/bootstrap.nix | 30 |
1 files changed, 13 insertions, 17 deletions
diff --git a/pkgs/development/compilers/rust/bootstrap.nix b/pkgs/development/compilers/rust/bootstrap.nix index ad49b1305706..fbcac09fc458 100644 --- a/pkgs/development/compilers/rust/bootstrap.nix +++ b/pkgs/development/compilers/rust/bootstrap.nix @@ -1,6 +1,18 @@ { stdenv, fetchurl, makeWrapper, cacert, zlib, curl }: let + # Note: the version MUST be one version prior to the version we're + # building + version = "1.19.0"; + + # fetch hashes by running `print-hashes.sh 1.19.0` + hashes = { + i686-unknown-linux-gnu = "657b78f3c1a1b4412e12f7278e20cc318022fa276a58f0d38a0d15b515e39713"; + x86_64-unknown-linux-gnu = "30ff67884464d32f6bbbde4387e7557db98868e87fb2afbb77c9b7716e3bff09"; + i686-apple-darwin = "bdfd2189245dc5764c9f26bdba1429c2bf9d57477d8e6e3f0ba42ea0dc63edeb"; + x86_64-apple-darwin = "5c668fb60a3ba3e97dc2cb8967fc4bb9422b629155284dcb89f94d116bb17820"; + }; + platform = if stdenv.system == "i686-linux" then "i686-unknown-linux-gnu" @@ -12,27 +24,11 @@ let then "x86_64-apple-darwin" else throw "missing bootstrap url for platform ${stdenv.system}"; - # fetch hashes by patching print-hashes.sh to not use the "$DATE" variable - # then running `print-hashes.sh 1.16.0` - bootstrapHash = - if stdenv.system == "i686-linux" - then "b5859161ebb182d3b75fa14a5741e5de87b088146fb0ef4a30f3b2439c6179c5" - else if stdenv.system == "x86_64-linux" - then "48621912c242753ba37cad5145df375eeba41c81079df46f93ffb4896542e8fd" - else if stdenv.system == "i686-darwin" - then "26356b14164354725bd0351e8084f9b164abab134fb05cddb7758af35aad2065" - else if stdenv.system == "x86_64-darwin" - then "2d08259ee038d3a2c77a93f1a31fc59e7a1d6d1bbfcba3dba3c8213b2e5d1926" - else throw "missing bootstrap hash for platform ${stdenv.system}"; - src = fetchurl { url = "https://static.rust-lang.org/dist/rust-${version}-${platform}.tar.gz"; - sha256 = bootstrapHash; + sha256 = hashes."${platform}"; }; - # Note: the version MUST be one version prior to the version we're - # building - version = "1.16.0"; in import ./binaryBuild.nix { inherit stdenv fetchurl makeWrapper cacert zlib curl; buildRustPackage = null; |