python3Packages.orjson: Disable failing tests on 32 bit
[NixPkgs.git] / pkgs / development / tools / tabnine / fetch-latest.sh
blob240a55976640b51404df8b36f32201ad0196d1a2
1 #!/usr/bin/env bash
3 set -euo pipefail
5 function prefetch-sri() {
6 nix-prefetch-url "$1" 2>/dev/null | xargs nix hash to-sri --type sha256
9 declare -a PLATFORMS=(
10 x86_64-unknown-linux-musl
11 x86_64-apple-darwin
12 aarch64-apple-darwin
15 LATEST="$(curl -sS https://update.tabnine.com/bundles/version)"
17 cat <<-EOF
18 version = "${LATEST}";
19 EOF
21 for platform in "${PLATFORMS[@]}"; do
22 url="https://update.tabnine.com/bundles/${LATEST}/${platform}/TabNine.zip"
23 sha="$(prefetch-sri "$url")"
24 cat <<-EOF
25 name = "${platform}";
26 hash = "${sha}";
28 EOF
29 done