pcsx2: 1.7.5587 -> 1.7.5779
Diff: PCSX2/pcsx2@v1.7.5587...v1.7.5779
This commit is contained in:
parent
b0a14018d3
commit
f66076f374
pkgs/by-name/pc/pcsx2
@ -2,16 +2,17 @@
|
|||||||
, fetchFromGitHub
|
, fetchFromGitHub
|
||||||
, lib
|
, lib
|
||||||
, llvmPackages_17
|
, llvmPackages_17
|
||||||
|
, callPackage
|
||||||
, cubeb
|
, cubeb
|
||||||
, curl
|
, curl
|
||||||
, extra-cmake-modules
|
, extra-cmake-modules
|
||||||
|
, fetchpatch
|
||||||
, ffmpeg
|
, ffmpeg
|
||||||
, libaio
|
, libaio
|
||||||
, libbacktrace
|
, libbacktrace
|
||||||
, libpcap
|
, libpcap
|
||||||
, libwebp
|
, libwebp
|
||||||
, libXrandr
|
, libXrandr
|
||||||
, libzip
|
|
||||||
, lz4
|
, lz4
|
||||||
, makeWrapper
|
, makeWrapper
|
||||||
, pkg-config
|
, pkg-config
|
||||||
@ -22,18 +23,18 @@
|
|||||||
, vulkan-headers
|
, vulkan-headers
|
||||||
, vulkan-loader
|
, vulkan-loader
|
||||||
, wayland
|
, wayland
|
||||||
, xz
|
|
||||||
, zip
|
, zip
|
||||||
, zstd
|
, zstd
|
||||||
}:
|
}:
|
||||||
|
|
||||||
let
|
let
|
||||||
|
shaderc-patched = callPackage ./shaderc-patched.nix { };
|
||||||
# The pre-zipped files in releases don't have a versioned link, we need to zip them ourselves
|
# The pre-zipped files in releases don't have a versioned link, we need to zip them ourselves
|
||||||
pcsx2_patches = fetchFromGitHub {
|
pcsx2_patches = fetchFromGitHub {
|
||||||
owner = "PCSX2";
|
owner = "PCSX2";
|
||||||
repo = "pcsx2_patches";
|
repo = "pcsx2_patches";
|
||||||
rev = "e3b354f144de71d2b87471166cca8911867c1dfd";
|
rev = "b3a788e16ea12efac006cbbe1ece45b6b9b34326";
|
||||||
sha256 = "sha256-H7cFyBYZumcCZ0/FFOFZoChoi0XPs4siA4dHcFt9U7k=";
|
sha256 = "sha256-Uvpz2Gpj533Sr6wLruubZxssoXefQDey8GHIDKWhW3s=";
|
||||||
};
|
};
|
||||||
inherit (qt6)
|
inherit (qt6)
|
||||||
qtbase
|
qtbase
|
||||||
@ -45,24 +46,33 @@ let
|
|||||||
in
|
in
|
||||||
llvmPackages_17.stdenv.mkDerivation (finalAttrs: {
|
llvmPackages_17.stdenv.mkDerivation (finalAttrs: {
|
||||||
pname = "pcsx2";
|
pname = "pcsx2";
|
||||||
version = "1.7.5587";
|
version = "1.7.5779";
|
||||||
|
|
||||||
src = fetchFromGitHub {
|
src = fetchFromGitHub {
|
||||||
owner = "PCSX2";
|
owner = "PCSX2";
|
||||||
repo = "pcsx2";
|
repo = "pcsx2";
|
||||||
fetchSubmodules = true;
|
fetchSubmodules = true;
|
||||||
rev = "v${finalAttrs.version}";
|
rev = "v${finalAttrs.version}";
|
||||||
sha256 = "sha256-PCZ1r6x28Z5FEVMXWm4oxpTknz/XEiwo0rRGhn4B33g=";
|
sha256 = "sha256-WiwnP5yoBy8bRLUPuCZ7z4nhIzrY8P29KS5ZjErM/A4=";
|
||||||
};
|
};
|
||||||
|
|
||||||
patches = [
|
patches = [
|
||||||
./define-rev.patch
|
./define-rev.patch
|
||||||
|
# Backport patches to fix random crashes on startup
|
||||||
|
(fetchpatch {
|
||||||
|
url = "https://github.com/PCSX2/pcsx2/commit/e47bcf8d80df9a93201eefbaf169ec1a0673a833.patch";
|
||||||
|
sha256 = "sha256-7CL1Kpu+/JgtKIenn9rQKAs3A+oJ40W5XHlqSg77Q7Y=";
|
||||||
|
})
|
||||||
|
(fetchpatch {
|
||||||
|
url = "https://github.com/PCSX2/pcsx2/commit/92b707db994f821bccc35d6eef67727ea3ab496b.patch";
|
||||||
|
sha256 = "sha256-HWJ8KZAY/qBBotAJerZg6zi5QUHuTD51zKH1rAtZ3tc=";
|
||||||
|
})
|
||||||
];
|
];
|
||||||
|
|
||||||
cmakeFlags = [
|
cmakeFlags = [
|
||||||
"-DDISABLE_ADVANCE_SIMD=ON"
|
(lib.cmakeBool "DISABLE_ADVANCE_SIMD" true)
|
||||||
"-DUSE_LINKED_FFMPEG=ON"
|
(lib.cmakeBool "USE_LINKED_FFMPEG" true)
|
||||||
"-DPCSX2_GIT_REV=v${finalAttrs.version}"
|
(lib.cmakeFeature "PCSX2_GIT_REV" finalAttrs.src.rev)
|
||||||
];
|
];
|
||||||
|
|
||||||
nativeBuildInputs = [
|
nativeBuildInputs = [
|
||||||
@ -82,17 +92,16 @@ llvmPackages_17.stdenv.mkDerivation (finalAttrs: {
|
|||||||
libpcap
|
libpcap
|
||||||
libwebp
|
libwebp
|
||||||
libXrandr
|
libXrandr
|
||||||
libzip
|
|
||||||
lz4
|
lz4
|
||||||
qtbase
|
qtbase
|
||||||
qtsvg
|
qtsvg
|
||||||
qttools
|
qttools
|
||||||
qtwayland
|
qtwayland
|
||||||
SDL2
|
SDL2
|
||||||
|
shaderc-patched
|
||||||
soundtouch
|
soundtouch
|
||||||
vulkan-headers
|
vulkan-headers
|
||||||
wayland
|
wayland
|
||||||
xz
|
|
||||||
zstd
|
zstd
|
||||||
]
|
]
|
||||||
++ cubeb.passthru.backendLibs;
|
++ cubeb.passthru.backendLibs;
|
||||||
@ -135,9 +144,9 @@ llvmPackages_17.stdenv.mkDerivation (finalAttrs: {
|
|||||||
PC, with many additional features and benefits.
|
PC, with many additional features and benefits.
|
||||||
'';
|
'';
|
||||||
homepage = "https://pcsx2.net";
|
homepage = "https://pcsx2.net";
|
||||||
license = with licenses; [ gpl3 lgpl3 ];
|
license = with licenses; [ gpl3Plus lgpl3Plus ];
|
||||||
maintainers = with maintainers; [ hrdinka govanify ];
|
maintainers = with maintainers; [ hrdinka govanify ];
|
||||||
mainProgram = "pcsx2-qt";
|
mainProgram = "pcsx2-qt";
|
||||||
platforms = platforms.x86_64;
|
platforms = [ "x86_64-linux" ];
|
||||||
};
|
};
|
||||||
})
|
})
|
||||||
|
20
pkgs/by-name/pc/pcsx2/shaderc-patched.nix
Normal file
20
pkgs/by-name/pc/pcsx2/shaderc-patched.nix
Normal file
@ -0,0 +1,20 @@
|
|||||||
|
{
|
||||||
|
fetchpatch,
|
||||||
|
pcsx2,
|
||||||
|
shaderc,
|
||||||
|
}:
|
||||||
|
|
||||||
|
shaderc.overrideAttrs (old: {
|
||||||
|
pname = "shaderc-patched-for-pcsx2";
|
||||||
|
patches = (old.patches or [ ]) ++ [
|
||||||
|
(fetchpatch {
|
||||||
|
url = "file://${pcsx2.src}/.github/workflows/scripts/common/shaderc-changes.patch";
|
||||||
|
hash = "sha256-Ps/D+CdSbjVWg3ZGOEcgbpQbCNkI5Nuizm4E5qiM9Wo=";
|
||||||
|
excludes = [
|
||||||
|
"CHANGES"
|
||||||
|
"CMakeLists.txt"
|
||||||
|
"libshaderc/CMakeLists.txt"
|
||||||
|
];
|
||||||
|
})
|
||||||
|
];
|
||||||
|
})
|
Loading…
Reference in New Issue
Block a user