Merge pull request #73379 from marsam/fix-mpv-darwin

mpv: fix build on darwin
This commit is contained in:
Franz Pletz 2019-11-14 12:21:24 +00:00 committed by GitHub
commit c46d15de44
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 1 deletions

View File

@ -39,7 +39,7 @@
, pulseSupport ? config.pulseaudio or stdenv.isLinux, libpulseaudio ? null , pulseSupport ? config.pulseaudio or stdenv.isLinux, libpulseaudio ? null
, rubberbandSupport ? stdenv.isLinux, rubberband ? null , rubberbandSupport ? stdenv.isLinux, rubberband ? null
, screenSaverSupport ? true, libXScrnSaver ? null , screenSaverSupport ? true, libXScrnSaver ? null
, sambaSupport ? true, samba ? null , sambaSupport ? stdenv.isLinux, samba ? null
, sdl2Support ? true, SDL2 ? null , sdl2Support ? true, SDL2 ? null
, sndioSupport ? true, sndio ? null , sndioSupport ? true, sndio ? null
, speexSupport ? true, speex ? null , speexSupport ? true, speex ? null

View File

@ -12,6 +12,7 @@ stdenv.mkDerivation rec {
}; };
postFixup = stdenv.lib.optionalString stdenv.isDarwin '' postFixup = stdenv.lib.optionalString stdenv.isDarwin ''
install_name_tool -id $out/lib/libsndio.7.0.dylib $out/lib/libsndio.7.0.dylib
for file in $out/bin/*; do for file in $out/bin/*; do
install_name_tool -change libsndio.7.0.dylib $out/lib/libsndio.dylib $file install_name_tool -change libsndio.7.0.dylib $out/lib/libsndio.dylib $file
done done