From f18a27f91b9045ce211e9907358df431fa920b41 Mon Sep 17 00:00:00 2001 From: Ihar Hrachyshka Date: Fri, 7 Nov 2025 22:20:40 -0500 Subject: [PATCH 1/4] wxwidgets_3_3: fix darwin build failure --- pkgs/by-name/wx/wxwidgets_3_3/package.nix | 1 + 1 file changed, 1 insertion(+) diff --git a/pkgs/by-name/wx/wxwidgets_3_3/package.nix b/pkgs/by-name/wx/wxwidgets_3_3/package.nix index 9f16a12edbb5..7a8236a7792f 100644 --- a/pkgs/by-name/wx/wxwidgets_3_3/package.nix +++ b/pkgs/by-name/wx/wxwidgets_3_3/package.nix @@ -86,6 +86,7 @@ stdenv.mkDerivation (finalAttrs: { ] ++ lib.optional withMesa "--with-opengl" ++ lib.optionals stdenv.hostPlatform.isDarwin [ + "--with-macosx-version-min=${stdenv.hostPlatform.darwinMinVersion}" "--with-osx_cocoa" "--with-libiconv" "--with-urlsession" # for wxWebRequest From 2df0b9e7281fd0385f2c8d28ed74bf58064cdacb Mon Sep 17 00:00:00 2001 From: Ihar Hrachyshka Date: Fri, 7 Nov 2025 22:20:49 -0500 Subject: [PATCH 2/4] wxGTK32: fix darwin build failure --- pkgs/by-name/wx/wxGTK32/package.nix | 1 + 1 file changed, 1 insertion(+) diff --git a/pkgs/by-name/wx/wxGTK32/package.nix b/pkgs/by-name/wx/wxGTK32/package.nix index 80a179152dfb..ef47cfef5bab 100644 --- a/pkgs/by-name/wx/wxGTK32/package.nix +++ b/pkgs/by-name/wx/wxGTK32/package.nix @@ -101,6 +101,7 @@ stdenv.mkDerivation rec { ++ lib.optional unicode "--enable-unicode" ++ lib.optional withMesa "--with-opengl" ++ lib.optionals stdenv.hostPlatform.isDarwin [ + "--with-macosx-version-min=${stdenv.hostPlatform.darwinMinVersion}" "--with-osx_cocoa" "--with-libiconv" "--with-urlsession" # for wxWebRequest From 52a618d7bb281f32cc877de61982bd0a26da1ba6 Mon Sep 17 00:00:00 2001 From: Ihar Hrachyshka Date: Fri, 7 Nov 2025 22:25:19 -0500 Subject: [PATCH 3/4] wxGTK31: fix darwin build failure --- pkgs/by-name/wx/wxGTK31/package.nix | 1 + 1 file changed, 1 insertion(+) diff --git a/pkgs/by-name/wx/wxGTK31/package.nix b/pkgs/by-name/wx/wxGTK31/package.nix index e474550d6223..b9176a248730 100644 --- a/pkgs/by-name/wx/wxGTK31/package.nix +++ b/pkgs/by-name/wx/wxGTK31/package.nix @@ -80,6 +80,7 @@ stdenv.mkDerivation rec { ++ lib.optional withPrivateFonts "--enable-privatefonts" ++ lib.optional withMesa "--with-opengl" ++ lib.optionals stdenv.hostPlatform.isDarwin [ + "--with-macosx-version-min=${stdenv.hostPlatform.darwinMinVersion}" "--with-osx_cocoa" "--with-libiconv" ] From cd1230cbb4988b4215a1827671124aa82ab899cd Mon Sep 17 00:00:00 2001 From: Ihar Hrachyshka Date: Sat, 8 Nov 2025 16:56:03 -0500 Subject: [PATCH 4/4] audacity: fix darwin build failure We link binaries with /usr/lib/libSystem.B.dylib but patchPhase was patching upstream fix_bundle script so that it was overriding references to it with @loader_path/../Frameworks, breaking the build. --- pkgs/by-name/au/audacity/package.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkgs/by-name/au/audacity/package.nix b/pkgs/by-name/au/audacity/package.nix index 3f4110c6c7f7..919298baf10e 100644 --- a/pkgs/by-name/au/audacity/package.nix +++ b/pkgs/by-name/au/audacity/package.nix @@ -78,7 +78,7 @@ stdenv.mkDerivation (finalAttrs: { postPatch = '' mkdir src/private substituteInPlace scripts/build/macOS/fix_bundle.py \ - --replace-fail "path.startswith('/usr/lib/')" "path.startswith('${builtins.storeDir}')" + --replace-fail "path.startswith('/usr/lib/')" "path.startswith('/usr/lib/') or path.startswith('${builtins.storeDir}')" '' + lib.optionalString stdenv.hostPlatform.isLinux '' substituteInPlace libraries/lib-files/FileNames.cpp \