From d4ccb9d673afc964d324cc422e271a451a508b62 Mon Sep 17 00:00:00 2001 From: lasers Date: Sat, 13 May 2023 23:48:53 -0500 Subject: [PATCH] cemu: 2.0-36 -> 2.0-39 --- pkgs/applications/emulators/cemu/default.nix | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/pkgs/applications/emulators/cemu/default.nix b/pkgs/applications/emulators/cemu/default.nix index 45b4736b3d9b..493b1dcb1bad 100644 --- a/pkgs/applications/emulators/cemu/default.nix +++ b/pkgs/applications/emulators/cemu/default.nix @@ -23,7 +23,7 @@ , wayland , wxGTK32 , zarchive - +, gamemode , vulkan-loader , nix-update-script @@ -31,13 +31,13 @@ stdenv.mkDerivation rec { pname = "cemu"; - version = "2.0-36"; + version = "2.0-39"; src = fetchFromGitHub { owner = "cemu-project"; repo = "Cemu"; rev = "v${version}"; - hash = "sha256-RO8c9gLK00LLwDzcD8UOS3kh3kwTwFyrpuRlIXcInPo="; + hash = "sha256-+2V78G4SDFb6ZQDDorvT13yqnZw2JAObF+WGYMMGYHE="; }; patches = [ @@ -80,6 +80,7 @@ stdenv.mkDerivation rec { "-DCMAKE_C_FLAGS_RELEASE=-DNDEBUG" "-DCMAKE_CXX_FLAGS_RELEASE=-DNDEBUG" "-DENABLE_VCPKG=OFF" + "-DENABLE_FERAL_GAMEMODE=ON" # PORTABLE: # "All data created and maintained by Cemu will be in the directory where the executable file is located" @@ -91,7 +92,8 @@ stdenv.mkDerivation rec { in '' rm -rf dependencies/imgui ln -s ${imgui}/include/imgui dependencies/imgui - sed 's/\(EMULATOR_VERSION_SUFFIX\).*experimental.*/\1 "-${tag} (experimental)"/' -i src/Common/version.h + substituteInPlace src/Common/version.h --replace " (experimental)" "-${tag} (experimental)" + substituteInPlace dependencies/gamemode/lib/gamemode_client.h --replace "libgamemode.so.0" "${gamemode.lib}/lib/libgamemode.so.0" ''; installPhase = ''