diff options
Diffstat (limited to 'pkgs/development/compilers/go/print-hashes.sh')
-rwxr-xr-x | pkgs/development/compilers/go/print-hashes.sh | 16 |
1 files changed, 0 insertions, 16 deletions
diff --git a/pkgs/development/compilers/go/print-hashes.sh b/pkgs/development/compilers/go/print-hashes.sh deleted file mode 100755 index ed3e62b941b8..000000000000 --- a/pkgs/development/compilers/go/print-hashes.sh +++ /dev/null @@ -1,16 +0,0 @@ -#!/usr/bin/env nix-shell -#! nix-shell -i bash -p curl jq -# shellcheck shell=bash -set -euo pipefail - -BASEURL=https://go.dev/dl/ -VERSION=${1:-} - -if [[ -z ${VERSION} ]]; then - echo "No version supplied" - exit 1 -fi - -curl -s "${BASEURL}?mode=json&include=all" | - jq '.[] | select(.version == "go'"${VERSION}"'")' | - jq -r '.files[] | select(.kind == "archive" and (.os == "linux" or .os == "darwin")) | (.os + "-" + .arch + " = \"" + .sha256 + "\";")' |