SDL_audiolib: fix build on darwin (#459827)

This commit is contained in:
Grimmauld
2025-11-08 20:25:51 +00:00
committed by GitHub
+11
View File
@@ -6,6 +6,7 @@
pkg-config,
stdenv,
flac,
fmt,
}:
stdenv.mkDerivation (finalAttrs: {
@@ -29,10 +30,20 @@ stdenv.mkDerivation (finalAttrs: {
buildInputs = [
SDL2
flac
fmt
];
strictDeps = true;
postPatch = ''
# Remove the bundled fmt directory
rm -rf 3rdparty/fmt
# Patch CMakeLists.txt to replace bundled fmt with provided library
substituteInPlace CMakeLists.txt \
--replace-fail 'add_bundled_fmtlib()' 'find_package(fmt REQUIRED)'
'';
cmakeFlags = [
(lib.cmakeBool "USE_DEC_ADLMIDI" false)
(lib.cmakeBool "USE_DEC_BASSMIDI" false)