zoom-us: patch ZoomWebviewHost

This commit is contained in:
Olli Helenius 2024-09-16 10:39:26 +03:00 committed by Bjørn Forsman
parent d441b0aa9c
commit affe201a2a

View File

@ -158,7 +158,7 @@ stdenv.mkDerivation rec {
substituteInPlace $out/share/applications/Zoom.desktop \
--replace-fail "Exec=/usr/bin/zoom" "Exec=$out/bin/zoom"
for i in aomhost zopen zoom ZoomLauncher; do
for i in aomhost zopen zoom ZoomLauncher ZoomWebviewHost; do
patchelf --set-interpreter "$(cat $NIX_CC/nix-support/dynamic-linker)" $out/opt/zoom/$i
done
@ -181,6 +181,12 @@ stdenv.mkDerivation rec {
--prefix PATH : ${lib.makeBinPath [ coreutils glib.dev pciutils procps util-linux ]} \
--prefix LD_LIBRARY_PATH ":" ${libs}
wrapProgram $out/opt/zoom/ZoomWebviewHost \
--unset QML2_IMPORT_PATH \
--unset QT_PLUGIN_PATH \
--unset QT_SCREEN_SCALE_FACTORS \
--prefix LD_LIBRARY_PATH ":" ${libs}
# Backwards compatibility: we used to call it zoom-us
ln -s $out/bin/{zoom,zoom-us}
'';