From ec930db8a96d318777a370c2c5a5a3d3713570f7 Mon Sep 17 00:00:00 2001 From: Reno Dakota <170618376+paparodeo@users.noreply.github.com> Date: Thu, 24 Oct 2024 07:40:54 +0000 Subject: [PATCH] vorbis-tools: fix darwin build ld64 doesn't support linking with nested archives and as the nested archived isn't required to build leave it out. --- pkgs/applications/audio/vorbis-tools/default.nix | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/pkgs/applications/audio/vorbis-tools/default.nix b/pkgs/applications/audio/vorbis-tools/default.nix index 4325d934e84b..54291ef25b9d 100644 --- a/pkgs/applications/audio/vorbis-tools/default.nix +++ b/pkgs/applications/audio/vorbis-tools/default.nix @@ -20,6 +20,13 @@ stdenv.mkDerivation rec { }) ]; + # ld64 on darwin doesn't support nested archives and as the nested lib + # (libbase64.a) is not required to build so leave it out + postPatch = lib.optionalString stdenv.hostPlatform.isDarwin '' + substituteInPlace share/Makefile.am \ + --replace-fail libpicture_a_LIBADD '#libpicture_a_LIBADD' + ''; + nativeBuildInputs = [ autoreconfHook pkg-config ]; buildInputs = [ libogg libvorbis libao curl speex flac ] ++ lib.optionals stdenv.hostPlatform.isDarwin [ libiconv ];