jenkins: fix passthru.updateScript

This commit is contained in:
ajs124 2023-03-21 11:22:48 +01:00
parent 43c7420fbd
commit 90f4daba7e

View File

@ -51,11 +51,10 @@ stdenv.mkDerivation rec {
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)"
hash="$(nix hash to-sri --type sha256 "$sha256")"
if [ ! "$oldVersion" = "$version" ]; then
update-source-version jenkins "$version" "$hash" "$url"
update-source-version jenkins "$version" "$hash"
nixpkgs="$(git rev-parse --show-toplevel)"
default_nix="$nixpkgs/pkgs/development/tools/continuous-integration/jenkins/default.nix"
nixfmt "$default_nix"