29 vulkan-memory-allocator,
36 stdenv.mkDerivation (finalAttrs: {
40 src = fetchFromGitHub {
41 owner = "shadps4-emu";
43 rev = "refs/tags/v.${finalAttrs.version}";
44 hash = "sha256-dAhm9XMFnpNmbgi/TGktNHMdFDYPOWj31pZkBoUfQhA=";
45 fetchSubmodules = true;
49 # https://github.com/shadps4-emu/shadPS4/issues/758
51 # Fix controls without a numpad
52 ./laptop-controls.patch
54 # Disable auto-updating, as
55 # downloading an AppImage and trying to run it just won't work.
56 # https://github.com/shadps4-emu/shadPS4/issues/1368
57 ./0001-Disable-update-checking.patch
59 # https://github.com/shadps4-emu/shadPS4/issues/1457
60 ./av_err2str_macro.patch
91 vulkan-memory-allocator
103 (lib.cmakeBool "ENABLE_QT_GUI" true)
106 # Still in development, help with debugging
107 cmakeBuildType = "RelWithDebugInfo";
113 install -D -t $out/bin shadps4
114 install -Dm644 -t $out/share/icons/hicolor/512x512/apps $src/.github/shadps4.png
115 install -Dm644 -t $out/share/applications $src/.github/shadps4.desktop
121 patchelf --add-rpath ${
122 lib.makeLibraryPath [
130 passthru.updateScript = unstableGitUpdater {
136 description = "Early in development PS4 emulator";
137 homepage = "https://github.com/shadps4-emu/shadPS4";
138 changelog = "https://github.com/shadps4-emu/shadPS4/releases/tag/v.${finalAttrs.version}";
139 license = lib.licenses.gpl2Plus;
140 maintainers = with lib.maintainers; [ ryand56 ];
141 mainProgram = "shadps4";
142 platforms = lib.intersectLists lib.platforms.linux lib.platforms.x86_64;