From 01a69e5619da6436a8c7ec852731e26db7bc454b Mon Sep 17 00:00:00 2001 From: Peder Bergebakken Sundt Date: Thu, 25 Jul 2024 01:22:21 +0200 Subject: [PATCH] pcsx2-bin: simplify updateScript --- pkgs/by-name/pc/pcsx2-bin/package.nix | 3 ++- pkgs/by-name/pc/pcsx2-bin/update.sh | 8 -------- 2 files changed, 2 insertions(+), 9 deletions(-) delete mode 100755 pkgs/by-name/pc/pcsx2-bin/update.sh diff --git a/pkgs/by-name/pc/pcsx2-bin/package.nix b/pkgs/by-name/pc/pcsx2-bin/package.nix index cb38ebac1c76..db8ddcb957db 100644 --- a/pkgs/by-name/pc/pcsx2-bin/package.nix +++ b/pkgs/by-name/pc/pcsx2-bin/package.nix @@ -3,6 +3,7 @@ stdenvNoCC, fetchurl, makeWrapper, + nix-update-script, }: stdenvNoCC.mkDerivation (finalAttrs: { @@ -30,7 +31,7 @@ stdenvNoCC.mkDerivation (finalAttrs: { ''; passthru = { - updateScript = ./update.sh; + updateScript = nix-update-script { }; }; meta = { diff --git a/pkgs/by-name/pc/pcsx2-bin/update.sh b/pkgs/by-name/pc/pcsx2-bin/update.sh deleted file mode 100755 index 0450ad205744..000000000000 --- a/pkgs/by-name/pc/pcsx2-bin/update.sh +++ /dev/null @@ -1,8 +0,0 @@ -#!/usr/bin/env nix-shell -#!nix-shell -i bash -p curl jq gnused common-updater-scripts - -set -eou pipefail - -LATEST_VERSION="$(curl --silent --fail ${GITHUB_TOKEN:+-u ":$GITHUB_TOKEN"} "https://api.github.com/repos/PCSX2/pcsx2/releases" | jq '.[0].tag_name' --raw-output | sed 's/^v//')" - -update-source-version pcsx2-bin "$LATEST_VERSION"