azahar: 2122.1 -> 2123.1

Signed-off-by: Marcin Serwin <marcin@serwin.dev>

+57 -66
+33
pkgs/by-name/az/azahar/fix-zstd-seekable-include.patch
··· 1 + diff --git a/externals/CMakeLists.txt b/externals/CMakeLists.txt 2 + index 66cbbd52ed..a8b9d41e4e 100644 3 + --- a/externals/CMakeLists.txt 4 + +++ b/externals/CMakeLists.txt 5 + @@ -230,13 +230,8 @@ 6 + ) 7 + target_link_libraries(zstd_seekable PUBLIC libzstd_static) 8 + 9 + - target_link_libraries(libzstd_static INTERFACE zstd_seekable) 10 + - 11 + - add_library(zstd ALIAS libzstd_static) 12 + - 13 + - install(TARGETS zstd_seekable 14 + - EXPORT zstdExports 15 + - ) 16 + + add_library(zstd INTERFACE) 17 + + target_link_libraries(zstd INTERFACE libzstd_static zstd_seekable) 18 + endif() 19 + 20 + # ENet 21 + diff --git a/src/common/zstd_compression.cpp b/src/common/zstd_compression.cpp 22 + index 1e38877a1c..ac85ea1978 100644 23 + --- a/src/common/zstd_compression.cpp 24 + +++ b/src/common/zstd_compression.cpp 25 + @@ -13,7 +13,7 @@ 26 + #include <mutex> 27 + #include <sstream> 28 + #include <zstd.h> 29 + -#include <zstd/contrib/seekable_format/zstd_seekable.h> 30 + +#include <zstd_seekable.h> 31 + 32 + #include <boost/serialization/base_object.hpp> 33 + #include <boost/serialization/unique_ptr.hpp>
+24 -23
pkgs/by-name/az/azahar/package.nix
··· 7 7 doxygen, 8 8 dynarmic, 9 9 enet, 10 - fetchpatch, 11 10 fetchzip, 12 11 fmt, 13 12 ffmpeg_6-headless, ··· 25 24 pipewire, 26 25 pkg-config, 27 26 portaudio, 27 + python3, 28 28 robin-map, 29 29 SDL2, 30 - spirv-tools, 30 + spirv-headers, 31 31 soundtouch, 32 32 stdenv, 33 33 vulkan-headers, 34 34 xbyak, 35 35 xorg, 36 - zstd, 37 36 enableQtTranslations ? true, 38 37 qt6, 39 38 enableCubeb ? true, ··· 44 43 gamemode, 45 44 enableGamemode ? lib.meta.availableOn stdenv.hostPlatform gamemode, 46 45 nix-update-script, 46 + darwinMinVersionHook, 47 + apple-sdk_12, 47 48 }: 48 49 let 49 50 inherit (lib) ··· 55 56 in 56 57 stdenv.mkDerivation (finalAttrs: { 57 58 pname = "azahar"; 58 - version = "2122.1"; 59 + version = "2123.1"; 59 60 60 61 src = fetchzip { 61 62 url = "https://github.com/azahar-emu/azahar/releases/download/${finalAttrs.version}/azahar-unified-source-${finalAttrs.version}.tar.xz"; 62 - hash = "sha256-RQ8dgD09cWyVWGSLzHz1oJOKia1OKr2jHqYwKaVGfxE="; 63 + hash = "sha256-Rwq1fkRCzOna04d71w175iSQnH26z7gQfwfIZhFW/90="; 63 64 }; 64 65 66 + patches = [ 67 + # https://github.com/azahar-emu/azahar/pull/1305 68 + ./fix-zstd-seekable-include.patch 69 + ]; 70 + 71 + strictDeps = true; 65 72 nativeBuildInputs = [ 66 73 cmake 67 74 doxygen 75 + python3 68 76 pkg-config 69 77 qt6.wrapQtAppsHook 70 78 ]; ··· 94 102 qt6.qttools 95 103 soundtouch 96 104 SDL2 97 - spirv-tools 105 + spirv-headers 98 106 vulkan-headers 99 107 xbyak 100 - zstd 108 + 109 + # https://github.com/azahar-emu/azahar/pull/1281 110 + # spirv-tools 111 + 112 + # Azahar uses zstd_seekable which is not currently packaged in nixpkgs 113 + # zstd 101 114 ] 102 115 ++ optionals enableQtTranslations [ qt6.qttools ] 103 116 ++ optionals enableCubeb [ cubeb ] ··· 110 123 ] 111 124 ++ optionals stdenv.hostPlatform.isDarwin [ 112 125 moltenvk 113 - ]; 114 126 115 - patches = [ 116 - # Fix boost errors 117 - (fetchpatch { 118 - url = "https://raw.githubusercontent.com/Tatsh/tatsh-overlay/fa2f92b888f8c0aab70414ca560b823ffb33b122/games-emulation/lime3ds/files/lime3ds-0002-boost-fix.patch"; 119 - hash = "sha256-XJogqvQE7I5lVHtvQja0woVlO40blhFOqnoYftIQwJs="; 120 - }) 121 - 122 - # Fix boost 1.87 123 - (fetchpatch { 124 - url = "https://raw.githubusercontent.com/Tatsh/tatsh-overlay/5c4497d9b67fa6f2fa327b2f2ce4cb5be8c9f2f7/games-emulation/lime3ds/files/lime3ds-0003-boost-1.87-fixes.patch"; 125 - hash = "sha256-mwfI7fTx9aWF/EjMW3bxoz++A+6ONbNA70tT5nkhDUU="; 126 - }) 127 - 128 - # https://github.com/azahar-emu/azahar/pull/1165 129 - ./update-cmake-lists.patch 127 + # error: 'lowPowerModeEnabled' is unavailable: not available on macOS 128 + apple-sdk_12 129 + (darwinMinVersionHook "12.0") 130 130 ]; 131 131 132 132 postPatch = '' ··· 144 144 (cmakeBool "USE_SYSTEM_LIBS" true) 145 145 (cmakeBool "DISABLE_SYSTEM_LODEPNG" true) 146 146 (cmakeBool "DISABLE_SYSTEM_VMA" true) 147 + (cmakeBool "DISABLE_SYSTEM_ZSTD" true) 147 148 (cmakeBool "ENABLE_QT_TRANSLATION" enableQtTranslations) 148 149 (cmakeBool "ENABLE_CUBEB" enableCubeb) 149 150 (cmakeBool "USE_DISCORD_PRESENCE" useDiscordRichPresence)
-43
pkgs/by-name/az/azahar/update-cmake-lists.patch
··· 1 - From d9e7361a174f0f491c49fe78cd96a823c65e97dd Mon Sep 17 00:00:00 2001 2 - From: qr243vbi <uiguruigurovich@gmail.com> 3 - Date: Sat, 7 Jun 2025 01:18:03 +0300 4 - Subject: [PATCH 1/2] Update CMakeLists.txt 5 - 6 - --- 7 - CMakeLists.txt | 1 + 8 - 1 file changed, 1 insertion(+) 9 - 10 - diff --git a/CMakeLists.txt b/CMakeLists.txt 11 - index 54051a4ef2..531c46abbe 100644 12 - --- a/CMakeLists.txt 13 - +++ b/CMakeLists.txt 14 - @@ -16,6 +16,7 @@ list(APPEND CMAKE_MODULE_PATH "${CMAKE_CURRENT_SOURCE_DIR}/CMakeModules") 15 - list(APPEND CMAKE_MODULE_PATH "${CMAKE_CURRENT_SOURCE_DIR}/externals/cmake-modules") 16 - include(DownloadExternals) 17 - include(CMakeDependentOption) 18 - +include(FindPkgConfig) 19 - 20 - project(citra LANGUAGES C CXX ASM) 21 - 22 - 23 - From 679a4036e2fbb96d1d6a803f3f59ae8f01f9e691 Mon Sep 17 00:00:00 2001 24 - From: qr243vbi <uiguruigurovich@gmail.com> 25 - Date: Sat, 7 Jun 2025 12:49:07 +0300 26 - Subject: [PATCH 2/2] Add missing find_package directive 27 - 28 - --- 29 - src/citra_qt/CMakeLists.txt | 1 + 30 - 1 file changed, 1 insertion(+) 31 - 32 - diff --git a/src/citra_qt/CMakeLists.txt b/src/citra_qt/CMakeLists.txt 33 - index 1b78605a0a..de00dc4609 100644 34 - --- a/src/citra_qt/CMakeLists.txt 35 - +++ b/src/citra_qt/CMakeLists.txt 36 - @@ -273,6 +273,7 @@ if (ENABLE_VULKAN) 37 - endif() 38 - 39 - if (NOT WIN32) 40 - + find_package(Qt6 REQUIRED COMPONENTS Core Gui Widgets) 41 - target_include_directories(citra_qt PRIVATE ${Qt6Gui_PRIVATE_INCLUDE_DIRS}) 42 - endif() 43 -