mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-15 18:23:09 +00:00
1e0866e064
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
31 lines
697 B
Bash
Executable File
31 lines
697 B
Bash
Executable File
#!/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"
|
|
DATE=$1
|
|
VERSION=$2
|
|
|
|
if [[ -z $DATE ]]
|
|
then
|
|
echo "No date supplied"
|
|
exit -1
|
|
fi
|
|
|
|
if [[ -z $VERSION ]]
|
|
then
|
|
echo "No version supplied"
|
|
exit -1
|
|
fi
|
|
|
|
for PLATFORM in $PLATFORMS
|
|
do
|
|
URL="$BASEURL/$DATE/rust-$VERSION-$PLATFORM.tar.gz.sha256"
|
|
curl $URL
|
|
done
|