Something went wrong. Try again.
What happens if I push all of nixpkgs
Something went wrong. Try again.
1.1 kB · 48 lines
Shell
12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849#!/usr/bin/env bashset -euo pipefail
# 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 x86_64-unknown-linux-musl arm-unknown-linux-gnueabihf armv7-unknown-linux-gnueabihf aarch64-unknown-linux-gnu aarch64-unknown-linux-musl x86_64-apple-darwin aarch64-apple-darwin powerpc64-unknown-linux-gnu powerpc64le-unknown-linux-gnu riscv64gc-unknown-linux-gnu s390x-unknown-linux-gnu loongarch64-unknown-linux-gnu loongarch64-unknown-linux-musl x86_64-unknown-freebsd)BASEURL=https://static.rust-lang.org/distVERSION=${1:-}DATE=${2:-}
if [[ -z $VERSION ]]then echo "No version supplied" exit -1fi
if [[ -n $DATE ]]then BASEURL=$BASEURL/$DATEfi
for PLATFORM in "${PLATFORMS[@]}"do URL="$BASEURL/rust-$VERSION-$PLATFORM.tar.gz.sha256" SHA256=$(curl -sSfL $URL | cut -d ' ' -f 1) echo "$PLATFORM = \"$SHA256\";"done