about summary refs log tree commit diff
path: root/pkgs/tools/games
diff options
context:
space:
mode:
authorPhilipp Rintz <git@rintz.net>2023-12-02 16:53:54 +0100
committerPhilipp Rintz <git@rintz.net>2023-12-02 16:53:54 +0100
commit50948fda77c7a72c105a19c17432ace8092396ba (patch)
tree0f11c26505373f451cecec0abab4e2a606fe2292 /pkgs/tools/games
parentbdc31fce2a6dd7e8d8bd221382e911448fd407cb (diff)
pocket-updater-utility: remove update.sh script and use nix-update-script
Diffstat (limited to 'pkgs/tools/games')
-rw-r--r--pkgs/tools/games/pocket-updater-utility/default.nix7
-rwxr-xr-xpkgs/tools/games/pocket-updater-utility/update.sh13
2 files changed, 4 insertions, 16 deletions
diff --git a/pkgs/tools/games/pocket-updater-utility/default.nix b/pkgs/tools/games/pocket-updater-utility/default.nix
index dc00f3b4a181e..3fb5acb27aae4 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 9f64eeac7dc9e..0000000000000
--- 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"