about summary refs log tree commit diff
path: root/pkgs/applications/networking/instant-messengers/zoom-us
diff options
context:
space:
mode:
authorTad Fisher <129148+tadfisher@users.noreply.github.com>2020-07-18 16:38:58 -0700
committerGitHub <noreply@github.com>2020-07-18 19:38:58 -0400
commit903a0cac04a10ca50ca461e2fad127d05b7f1419 (patch)
treec321754c2346ccc5b973d12eca397ee954050fd4 /pkgs/applications/networking/instant-messengers/zoom-us
parent566982e0ee2ad70bccaa31301a8b36af717fd35e (diff)
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.
Diffstat (limited to 'pkgs/applications/networking/instant-messengers/zoom-us')
-rw-r--r--pkgs/applications/networking/instant-messengers/zoom-us/default.nix7
1 files 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 2346beb356b63..782726954598f 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
     '';