Skip to content

Commit

Permalink
vorbis-tools: fix darwin build (#350890)
Browse files Browse the repository at this point in the history
  • Loading branch information
emilazy authored Oct 24, 2024
2 parents 8113a10 + ec930db commit 8b4a343
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions pkgs/applications/audio/vorbis-tools/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -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 ];
Expand Down

0 comments on commit 8b4a343

Please sign in to comment.