communi: fix on Darwin

Manual `wrapQtApp` call was previously removed in e0532475bca400362a2a488e31c86c6628a8e55a
but is required here because we work around `wrapQtAppsHook` trying to wrap
dylibs in app bundles.

OPNA2608 86ead2fe 348da227

+8 -1
+8 -1
pkgs/applications/networking/irc/communi/default.nix
··· 32 qtbase 33 ]; 34 35 preConfigure = '' 36 export QMAKEFEATURES=${libcommuni}/features 37 ''; ··· 51 install_name_tool \ 52 -add_rpath @executable_path/../Frameworks \ 53 $out/Applications/Communi.app/Contents/MacOS/Communi 54 '' else '' 55 substituteInPlace "$out/share/applications/communi.desktop" \ 56 --replace "/usr/bin" "$out/bin" ··· 66 license = licenses.bsd3; 67 maintainers = with maintainers; [ hrdinka ]; 68 platforms = platforms.all; 69 - broken = stdenv.isDarwin; 70 }; 71 }
··· 32 qtbase 33 ]; 34 35 + # libCommuni.dylib is installed in $out/Applications/Communi.app/Contents/Frameworks/ on Darwin 36 + # Wrapper hook thinks it's a binary because it's in $out/Applications, wraps it with a shell script 37 + # So we manually call the wrapper script on just the binary 38 + dontWrapQtApps = stdenv.isDarwin; 39 + 40 preConfigure = '' 41 export QMAKEFEATURES=${libcommuni}/features 42 ''; ··· 56 install_name_tool \ 57 -add_rpath @executable_path/../Frameworks \ 58 $out/Applications/Communi.app/Contents/MacOS/Communi 59 + 60 + # Do not remove until wrapQtAppsHook doesn't wrap dylibs in app bundles anymore 61 + wrapQtApp $out/Applications/Communi.app/Contents/MacOS/Communi 62 '' else '' 63 substituteInPlace "$out/share/applications/communi.desktop" \ 64 --replace "/usr/bin" "$out/bin" ··· 74 license = licenses.bsd3; 75 maintainers = with maintainers; [ hrdinka ]; 76 platforms = platforms.all; 77 }; 78 }