summary refs log tree commit diff
path: root/pkgs/applications/networking
diff options
context:
space:
mode:
authordanbst <abcz2.uprola@gmail.com>2017-06-15 15:56:49 +0300
committerdanbst <abcz2.uprola@gmail.com>2017-06-15 16:01:43 +0300
commit6d6d2fd3247b215d11f3ceeed933d9196305aa8a (patch)
treef455295ba31841b175e9b06e11f69aa6bae822ae /pkgs/applications/networking
parent8bc737d9d3cc56fac746deda75b5f882b49c054b (diff)
downloadnixlib-6d6d2fd3247b215d11f3ceeed933d9196305aa8a.tar
nixlib-6d6d2fd3247b215d11f3ceeed933d9196305aa8a.tar.gz
nixlib-6d6d2fd3247b215d11f3ceeed933d9196305aa8a.tar.bz2
nixlib-6d6d2fd3247b215d11f3ceeed933d9196305aa8a.tar.lz
nixlib-6d6d2fd3247b215d11f3ceeed933d9196305aa8a.tar.xz
nixlib-6d6d2fd3247b215d11f3ceeed933d9196305aa8a.tar.zst
nixlib-6d6d2fd3247b215d11f3ceeed933d9196305aa8a.zip
zoom-us: fix webcam video
Webcam Logitech C270 showed black screen in zoom, but LD_PRELOADing
v4l1compat.so fixed this. I hope, this wouldn't break camera for people,
who were already able to see video, but I can't be 100% sure currently.
Diffstat (limited to 'pkgs/applications/networking')
-rw-r--r--pkgs/applications/networking/instant-messengers/zoom-us/default.nix3
1 files changed, 2 insertions, 1 deletions
diff --git a/pkgs/applications/networking/instant-messengers/zoom-us/default.nix b/pkgs/applications/networking/instant-messengers/zoom-us/default.nix
index b3ea321d300a..45fb10da391e 100644
--- a/pkgs/applications/networking/instant-messengers/zoom-us/default.nix
+++ b/pkgs/applications/networking/instant-messengers/zoom-us/default.nix
@@ -1,6 +1,6 @@
 { stdenv, fetchurl, system, makeWrapper,
   alsaLib, dbus, glib, gstreamer, fontconfig, freetype, libpulseaudio, libxml2,
-  libxslt, mesa, nspr, nss, sqlite, utillinux, zlib, xorg, udev, expat }:
+  libxslt, mesa, nspr, nss, sqlite, utillinux, zlib, xorg, udev, expat, libv4l }:
 
 let
 
@@ -78,6 +78,7 @@ in stdenv.mkDerivation {
     # RUNPATH set via patchelf is used only for half of libraries (why?), so wrap it
     wrapProgram $packagePath/zoom \
         --prefix LD_LIBRARY_PATH : "$packagePath:$libPath" \
+        --prefix LD_PRELOAD : "${libv4l}/lib/v4l1compat.so" \
         --set QT_PLUGIN_PATH "$packagePath/platforms" \
         --set QT_XKB_CONFIG_ROOT "${xorg.xkeyboardconfig}/share/X11/xkb" \
         --set QTCOMPOSE "${xorg.libX11.out}/share/X11/locale"