mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-24 22:53:42 +00:00
18 lines
345 B
Bash
Executable File
18 lines
345 B
Bash
Executable File
#!/bin/sh
|
|
|
|
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
|
|
|
|
if [[ -z $VERSION ]]
|
|
then
|
|
echo "No version supplied"
|
|
exit -1
|
|
fi
|
|
|
|
for PLATFORM in $PLATFORMS
|
|
do
|
|
URL="$BASEURL/rust-$VERSION-$PLATFORM.tar.gz.sha256"
|
|
curl $URL
|
|
done
|