Merge pull request #254247 from johnhamelink/fix/mpv-on-darwin

mpv: Fix mujs dylib on Darwin
This commit is contained in:
Franz Pletz 2023-09-09 17:14:05 +02:00 committed by GitHub
commit 2874e518bf
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -225,6 +225,9 @@ in stdenv'.mkDerivation (finalAttrs: {
# See the explanation in addOpenGLRunpath.
postFixup = lib.optionalString stdenv.isLinux ''
addOpenGLRunpath $out/bin/mpv
'' + lib.optionalString (stdenv.isDarwin && javascriptSupport) ''
${stdenv.cc.targetPrefix}install_name_tool -change "build/release/libmujs.dylib" \
"${mujs}/lib/libmujs.dylib" $out/bin/mpv
'';
passthru = {