diff --git a/pkgs/tools/games/pocket-updater-utility/default.nix b/pkgs/tools/games/pocket-updater-utility/default.nix index dc00f3b4a181..3fb5acb27aae 100644 --- a/pkgs/tools/games/pocket-updater-utility/default.nix +++ b/pkgs/tools/games/pocket-updater-utility/default.nix @@ -7,17 +7,18 @@ , openssl ? pkgs.openssl , zlib ? pkgs.zlib , hostPlatform ? stdenv.hostPlatform +, nix-update-script ? stdenv.nix-update-script }: buildDotnetModule rec { pname = "pocket-updater-utility"; - version = "2.36.2"; + version = "2.37.0"; src = fetchFromGitHub { owner = "mattpannella"; repo = "${pname}"; rev = "${version}"; - hash = "sha256-W+7qN898+GbbvPgITXaRoFNuNL/2K8isbraQFWxRXuk="; + hash = "sha256-J9FYmoUNkMhLWsRCf64qBDAJaP8AIWGcuH0UjWx90ls="; }; buildInputs = [ @@ -49,7 +50,7 @@ buildDotnetModule rec { dotnet-runtime = dotnetCorePackages.runtime_6_0; passthru = { - updateScript = ./update.sh; + updateScript = nix-update-script { }; }; meta = with lib; { diff --git a/pkgs/tools/games/pocket-updater-utility/update.sh b/pkgs/tools/games/pocket-updater-utility/update.sh deleted file mode 100755 index 9f64eeac7dc9..000000000000 --- a/pkgs/tools/games/pocket-updater-utility/update.sh +++ /dev/null @@ -1,13 +0,0 @@ -#! /usr/bin/env nix-shell -#! nix-shell -i bash -p curl jq common-updater-scripts - -set -eu -o pipefail - -TARGET_VERSION=$(curl -s "https://api.github.com/repos/mattpannella/pocket-updater-utility/releases?per_page=1" | jq -r '.[0].tag_name') - -if [[ "$UPDATE_NIX_OLD_VERSION" == "$TARGET_VERSION" ]]; then - echo "pocket-updater-utility is up-to-date: ${UPDATE_NIX_OLD_VERSION}" - exit 0 -fi - -update-source-version pocket-updater-utility "$TARGET_VERSION"