From 903a0cac04a10ca50ca461e2fad127d05b7f1419 Mon Sep 17 00:00:00 2001 From: Tad Fisher <129148+tadfisher@users.noreply.github.com> Date: Sat, 18 Jul 2020 16:38:58 -0700 Subject: [PATCH] zoom-us: Link libfaac to fix audio recording (#93374) Fixes #93341. Using strace reveals that zoom is attempting to load "libfaac1.so" from its PATH. As faac provides "libfaac.so.0", solve this by linking from there to "libfaac1.so" in zoom's output. This is the same solution as the one we use for libjpeg_turbo. --- .../networking/instant-messengers/zoom-us/default.nix | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/pkgs/applications/networking/instant-messengers/zoom-us/default.nix b/pkgs/applications/networking/instant-messengers/zoom-us/default.nix index 2346beb356b6..782726954598 100644 --- a/pkgs/applications/networking/instant-messengers/zoom-us/default.nix +++ b/pkgs/applications/networking/instant-messengers/zoom-us/default.nix @@ -6,7 +6,7 @@ , qtquickcontrols2, qtscript, qtsvg , qttools, qtwayland, qtwebchannel , qtwebengine # Runtime -, coreutils, libjpeg_turbo, pciutils, procps, utillinux +, coreutils, libjpeg_turbo, faac, pciutils, procps, utillinux , pulseaudioSupport ? true, libpulseaudio ? null }: @@ -40,7 +40,7 @@ in mkDerivation { nativeBuildInputs = [ autoPatchelfHook ]; buildInputs = [ - dbus glib libGL libX11 libXfixes libuuid libxcb libjpeg_turbo qtbase + dbus glib libGL libX11 libXfixes libuuid libxcb libjpeg_turbo faac qtbase qtdeclarative qtgraphicaleffects qtlocation qtquickcontrols qtquickcontrols2 qtscript qtwebchannel qtwebengine qtimageformats qtsvg qttools qtwayland ]; @@ -72,6 +72,9 @@ in mkDerivation { # TODO Patch this somehow; tries to dlopen './libturbojpeg.so' from cwd ln -s $(readlink -e "${libjpeg_turbo.out}/lib/libturbojpeg.so") $out/share/zoom-us/libturbojpeg.so + # Again, requires faac with a nonstandard filename. + ln -s $(readlink -e "${faac}/lib/libfaac.so") $out/share/zoom-us/libfaac1.so + runHook postInstall '';