shadps4: 0.12.5 -> 0.13.0 (#474524)

This commit is contained in:
Guillaume Girol
2026-01-12 20:51:58 +00:00
committed by GitHub
+53 -10
View File
@@ -2,29 +2,44 @@
lib,
stdenv,
fetchFromGitHub,
nixosTests,
alsa-lib,
boost,
cmake,
cryptopp,
game-music-emu,
glslang,
ffmpeg,
flac,
fluidsynth,
fmt,
half,
jack2,
libdecor,
libGL,
libpulseaudio,
libunwind,
libusb1,
magic-enum,
libvorbis,
libxmp,
libgbm,
libx11,
libxcb,
libxcursor,
libxext,
libxi,
libxrandr,
libxscrnsaver,
libxtst,
magic-enum,
mpg123,
pipewire,
pkg-config,
pugixml,
rapidjson,
renderdoc,
robin-map,
sdl3,
sndio,
stb,
toml11,
@@ -33,7 +48,6 @@
vulkan-loader,
vulkan-memory-allocator,
xbyak,
xorg,
xxHash,
zlib-ng,
zydis,
@@ -42,39 +56,68 @@
stdenv.mkDerivation (finalAttrs: {
pname = "shadps4";
version = "0.12.5";
version = "0.13.0";
src = fetchFromGitHub {
owner = "shadps4-emu";
repo = "shadPS4";
tag = "v.${finalAttrs.version}";
hash = "sha256-H/GOnArWxMe/90qgyLb9fXbeJabUOV8CjLtpGokoStQ=";
hash = "sha256-zc3zhFTphty/vwioFEOfhgXttpD9MG2F7+YJYcW0H2w=";
fetchSubmodules = true;
leaveDotGit = true;
postFetch = ''
cd "$out"
git rev-parse --short=8 HEAD > $out/COMMIT
date -u -d "@$(git log -1 --pretty=%ct)" "+%Y-%m-%dT%H:%M:%SZ" > $out/SOURCE_DATE_EPOCH
find "$out" -name .git -print0 | xargs -0 rm -rf
'';
};
postPatch = ''
substituteInPlace src/common/scm_rev.cpp.in \
--replace-fail @APP_VERSION@ ${finalAttrs.version} \
--replace-fail @GIT_REV@ $(cat COMMIT) \
--replace-fail @GIT_BRANCH@ ${finalAttrs.version} \
--replace-fail @GIT_DESC@ nixpkgs \
--replace-fail @BUILD_DATE@ $(cat SOURCE_DATE_EPOCH)
'';
buildInputs = [
alsa-lib
boost
cryptopp
game-music-emu
glslang
ffmpeg
flac
fluidsynth
fmt
half
jack2
libdecor
libGL
libpulseaudio
libunwind
libusb1
xorg.libX11
xorg.libXext
magic-enum
libvorbis
libxmp
libx11
libxcb
libxcursor
libxext
libxi
libxrandr
libxscrnsaver
libxtst
libgbm
magic-enum
mpg123
pipewire
pugixml
rapidjson
renderdoc
robin-map
sdl3
sndio
stb
toml11
@@ -114,7 +157,7 @@ stdenv.mkDerivation (finalAttrs: {
runtimeDependencies = [
vulkan-loader
xorg.libXi
libxi
];
passthru = {