diff options
Diffstat (limited to 'pkgs/development/tools/tabnine/fetch-latest.sh')
-rwxr-xr-x | pkgs/development/tools/tabnine/fetch-latest.sh | 29 |
1 files changed, 0 insertions, 29 deletions
diff --git a/pkgs/development/tools/tabnine/fetch-latest.sh b/pkgs/development/tools/tabnine/fetch-latest.sh deleted file mode 100755 index 240a55976640b..0000000000000 --- a/pkgs/development/tools/tabnine/fetch-latest.sh +++ /dev/null @@ -1,29 +0,0 @@ -#!/usr/bin/env bash - -set -euo pipefail - -function prefetch-sri() { - nix-prefetch-url "$1" 2>/dev/null | xargs nix hash to-sri --type sha256 -} - -declare -a PLATFORMS=( - x86_64-unknown-linux-musl - x86_64-apple-darwin - aarch64-apple-darwin -) - -LATEST="$(curl -sS https://update.tabnine.com/bundles/version)" - -cat <<-EOF -version = "${LATEST}"; -EOF - -for platform in "${PLATFORMS[@]}"; do - url="https://update.tabnine.com/bundles/${LATEST}/${platform}/TabNine.zip" - sha="$(prefetch-sri "$url")" - cat <<-EOF -name = "${platform}"; -hash = "${sha}"; - -EOF -done |