From ffdb7349697a2c3169f63cc168f6147185f6bbc2 Mon Sep 17 00:00:00 2001 From: Arturo Date: Wed, 26 Nov 2025 11:56:26 +0000 Subject: [PATCH] dolphin-emu-primehack: fix build on release 25.11 --- .../do/dolphin-emu-primehack/package.nix | 20 ++++++++++++++----- 1 file changed, 15 insertions(+), 5 deletions(-) diff --git a/pkgs/by-name/do/dolphin-emu-primehack/package.nix b/pkgs/by-name/do/dolphin-emu-primehack/package.nix index 25f704b90df3..0aea13b4ce0d 100644 --- a/pkgs/by-name/do/dolphin-emu-primehack/package.nix +++ b/pkgs/by-name/do/dolphin-emu-primehack/package.nix @@ -2,7 +2,7 @@ lib, stdenv, fetchFromGitHub, - + fetchpatch2, # nativeBuildInputs pkg-config, cmake, @@ -12,7 +12,7 @@ curl, enet, ffmpeg, - fmt, + fmt_9, gettext, libGL, libGLU, @@ -26,12 +26,13 @@ libpthreadstubs, libpulseaudio, libusb1, - mbedtls_2, + mbedtls, miniupnpc, openal, pcre, portaudio, readline, + SDL2, sfml, soundtouch, xz, @@ -62,6 +63,13 @@ stdenv.mkDerivation (finalAttrs: { hash = "sha256-/9AabEJ2ZOvHeSGXWRuOucmjleBMRcJfhX+VDeldbgo="; }; + patches = [ + (fetchpatch2 { + url = "https://github.com/dolphin-emu/dolphin/commit/8edef722ce1aae65d5a39faf58753044de48b6e0.patch?full_index=1"; + hash = "sha256-QEG0p+AzrExWrOxL0qRPa+60GlL0DlLyVBrbG6pGuog="; + }) + ]; + nativeBuildInputs = [ pkg-config cmake @@ -74,7 +82,7 @@ stdenv.mkDerivation (finalAttrs: { curl enet ffmpeg - fmt + fmt_9 gettext libGL libGLU @@ -88,7 +96,7 @@ stdenv.mkDerivation (finalAttrs: { libpthreadstubs libpulseaudio libusb1 - mbedtls_2 + mbedtls miniupnpc openal pcre @@ -96,6 +104,7 @@ stdenv.mkDerivation (finalAttrs: { qt6.qtbase qt6.qtsvg readline + SDL2 sfml soundtouch xz @@ -115,6 +124,7 @@ stdenv.mkDerivation (finalAttrs: { cmakeFlags = [ (lib.cmakeBool "USE_SHARED_ENET" true) (lib.cmakeBool "ENABLE_LTO" true) + "-DCMAKE_POLICY_VERSION_MINIMUM=3.5" ] ++ lib.optionals stdenv.hostPlatform.isDarwin [ (lib.cmakeBool "OSX_USE_DEFAULT_SEARCH_PATH" true)