Skip to content

Commit

Permalink
Merge pull request #254247 from johnhamelink/fix/mpv-on-darwin
Browse files Browse the repository at this point in the history
mpv: Fix mujs dylib on Darwin
  • Loading branch information
fpletz authored Sep 9, 2023
2 parents 154ba6c + a1abee0 commit 2874e51
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions pkgs/applications/video/mpv/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -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 = {
Expand Down

0 comments on commit 2874e51

Please sign in to comment.