diff options
author | Anders Papitto <anderspapitto@gmail.com> | 2017-05-30 20:48:06 +0700 |
---|---|---|
committer | Anders Papitto <anderspapitto@gmail.com> | 2017-06-10 15:15:50 -0700 |
commit | 1e0866e06483087059af91b7f296e0c5610f8848 (patch) | |
tree | c8fdf1ce934a96d83f4c881ced3997026ee02555 /pkgs/development/compilers/rust/print-hashes.sh | |
parent | 53835c93cb4bc1c6228ee04d6788398a8ab36ab4 (diff) | |
download | nixpkgs-1e0866e06483087059af91b7f296e0c5610f8848.tar nixpkgs-1e0866e06483087059af91b7f296e0c5610f8848.tar.gz nixpkgs-1e0866e06483087059af91b7f296e0c5610f8848.tar.bz2 nixpkgs-1e0866e06483087059af91b7f296e0c5610f8848.tar.lz nixpkgs-1e0866e06483087059af91b7f296e0c5610f8848.tar.xz nixpkgs-1e0866e06483087059af91b7f296e0c5610f8848.tar.zst nixpkgs-1e0866e06483087059af91b7f296e0c5610f8848.zip |
rust: 1.15.0 -> 1.17.0
Also updates beta, nightly, nightlyBin, and bootstrap compilers. Also updates the registry. Also consolidates logic between bootstrap and nightlyBin compilers. Also contains some miscellaneous cleanups. Also patches firefox to build with the newer cargo
Diffstat (limited to 'pkgs/development/compilers/rust/print-hashes.sh')
-rwxr-xr-x | pkgs/development/compilers/rust/print-hashes.sh | 19 |
1 files changed, 16 insertions, 3 deletions
diff --git a/pkgs/development/compilers/rust/print-hashes.sh b/pkgs/development/compilers/rust/print-hashes.sh index 4d1d20066b8..da52ac37ab3 100755 --- a/pkgs/development/compilers/rust/print-hashes.sh +++ b/pkgs/development/compilers/rust/print-hashes.sh @@ -1,8 +1,21 @@ -#!/bin/sh +#!/usr/bin/env bash + +# All rust-related downloads can be found at +# https://static.rust-lang.org/dist/index.html. To find the date on +# which a particular thing was last updated, look for the *-date.txt +# file, e.g. +# https://static.rust-lang.org/dist/channel-rust-beta-date.txt PLATFORMS="i686-unknown-linux-gnu x86_64-unknown-linux-gnu i686-apple-darwin x86_64-apple-darwin" BASEURL="https://static.rust-lang.org/dist" -VERSION=$1 +DATE=$1 +VERSION=$2 + +if [[ -z $DATE ]] +then + echo "No date supplied" + exit -1 +fi if [[ -z $VERSION ]] then @@ -12,6 +25,6 @@ fi for PLATFORM in $PLATFORMS do - URL="$BASEURL/rust-$VERSION-$PLATFORM.tar.gz.sha256" + URL="$BASEURL/$DATE/rust-$VERSION-$PLATFORM.tar.gz.sha256" curl $URL done |