1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-11-19 04:02:10 +00:00

Fix mujs dylib on Darwin

This commit is contained in:
John Hamelink 2023-09-09 15:09:26 +01:00
parent 84de2599f7
commit a1abee0758
No known key found for this signature in database
GPG key ID: 153DDFE9A54A9A4C

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 = {