mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-20 12:43:52 +00:00
14 lines
439 B
Bash
Executable File
14 lines
439 B
Bash
Executable File
#!/usr/bin/env nix-shell
|
|
#!nix-shell -i bash -p curl common-updater-scripts jq
|
|
|
|
set -eu -o pipefail
|
|
|
|
core_json="$(curl --fail --location https://updates.jenkins.io/stable/update-center.actual.json | jq .core)"
|
|
|
|
version="$(jq -r .version <<<$core_json)"
|
|
sha256="$(jq -r .sha256 <<<$core_json)"
|
|
hash="$(nix-hash --type sha256 --to-base32 "$sha256")"
|
|
url="$(jq -r .url <<<$core_json)"
|
|
|
|
update-source-version jenkins "$version" "$hash" "$url"
|