python3Packages.orjson: Disable failing tests on 32 bit
[NixPkgs.git] / pkgs / development / libraries / libhsts / update.sh
blobf80966e08c9aa763b34779c85cb58ac80d61bd77
1 #!/usr/bin/env nix-shell
2 #!nix-shell -i bash -p curl jq
4 set -euo pipefail -x
6 cd "$(dirname "$0")"
8 chromium_version=$(curl -s "https://api.github.com/repos/chromium/chromium/tags" | jq -r 'map(select(.prerelease | not)) | .[1].name')
9 sha256=$(nix-prefetch-url "https://raw.github.com/chromium/chromium/$chromium_version/net/http/transport_security_state_static.json")
11 sed -e "0,/chromium_version/s/chromium_version = \".*\"/chromium_version = \"$chromium_version\"/" \
12 -e "0,/sha256/s/sha256 = \".*\"/sha256 = \"$sha256\"/" \
13 --in-place ./default.nix