pcsx2: 2.3.424 -> 2.4.0; switch to stable (#421529)

Changed files
+12 -17
pkgs
by-name
+4 -13
pkgs/by-name/pc/pcsx2/package.nix
···
libwebp,
llvmPackages,
lz4,
-
makeWrapper,
pkg-config,
qt6,
shaderc,
···
pcsx2_patches = fetchFromGitHub {
owner = "PCSX2";
repo = "pcsx2_patches";
-
rev = "6448ff90bbf2fddb4498dcfdae0e6d3ec8c23479";
-
hash = "sha256-ZXAZekllZHYjfU1q1QrbEdRlRAUAB6VOXLeAfn1GqW0=";
+
rev = "9b193aa0a61f5e93d3bd4124b111e8f296ef9fa8";
+
hash = "sha256-1hhdjFxJCNfeO/FIAnjRHESfiyzkErYddZqpRxzG7VQ=";
};
inherit (qt6)
···
in
llvmPackages.stdenv.mkDerivation (finalAttrs: {
pname = "pcsx2";
-
version = "2.3.424";
+
version = "2.4.0";
src = fetchFromGitHub {
pname = "pcsx2-source";
owner = "PCSX2";
repo = "pcsx2";
tag = "v${finalAttrs.version}";
-
hash = "sha256-EdFkSsat6O/1tXtJVHOPviseSaixd5LB1TNtfqhqR1E=";
+
hash = "sha256-R+BdywkZKxR/+Z+o1512O3A1mg9A6s7i+JZjFyUbJVs=";
};
patches = [
···
preFixup = ''
qtWrapperArgs+=("''${gappsWrapperArgs[@]}")
-
'';
-
-
# https://github.com/PCSX2/pcsx2/pull/10200
-
# Can't avoid the double wrapping, the binary wrapper from qtWrapperArgs doesn't support --run
-
postFixup = ''
-
source "${makeWrapper}/nix-support/setup-hook"
-
wrapProgram $out/bin/pcsx2-qt \
-
--run 'if [[ -z $I_WANT_A_BROKEN_WAYLAND_UI ]]; then export QT_QPA_PLATFORM=xcb; fi'
'';
passthru = {
+8 -4
pkgs/by-name/pc/pcsx2/update.sh
···
#!/usr/bin/env nix-shell
-
#!nix-shell -i bash -p bash nix-update common-updater-scripts coreutils
+
#!nix-shell -i bash -p bash nix-update common-updater-scripts coreutils jq
set -ex
-
latestRev=`git ls-remote -b https://github.com/PCSX2/pcsx2_patches main | cut -f1`
+
latestPatchesRev=`git ls-remote -b https://github.com/PCSX2/pcsx2_patches main | cut -f1`
update-source-version pcsx2 \
--ignore-same-version \
-
--rev=$latestRev \
+
--rev=$latestPatchesRev \
--source-key=pcsx2_patches
-
nix-update --version=unstable pcsx2
+
+
latestVersion="`curl "https://api.github.com/repos/PCSX2/pcsx2/releases/latest" \
+
| jq -r ".tag_name[1:]"`"
+
+
nix-update pcsx2 --version=$latestVersion