summary refs log tree commit diff
path: root/pkgs
diff options
context:
space:
mode:
authorTad Fisher <tadfisher@gmail.com>2018-07-05 13:42:44 -0700
committerDomen Kožar <domen@enlambda.com>2018-07-05 21:42:44 +0100
commit14555eab0fb16fddeb2288879e060e46ca627405 (patch)
treefe27f5017abbcec8da9abd0bfe3246c816f3f3a6 /pkgs
parent1bb95d8409aabcc9ee52045771b7c9109336fc2f (diff)
downloadnixlib-14555eab0fb16fddeb2288879e060e46ca627405.tar
nixlib-14555eab0fb16fddeb2288879e060e46ca627405.tar.gz
nixlib-14555eab0fb16fddeb2288879e060e46ca627405.tar.bz2
nixlib-14555eab0fb16fddeb2288879e060e46ca627405.tar.lz
nixlib-14555eab0fb16fddeb2288879e060e46ca627405.tar.xz
nixlib-14555eab0fb16fddeb2288879e060e46ca627405.tar.zst
nixlib-14555eab0fb16fddeb2288879e060e46ca627405.zip
zoom-us: 2.2.128100.0627 -> 2.2.128200.0702 (#42922)
Diffstat (limited to 'pkgs')
-rw-r--r--pkgs/applications/networking/instant-messengers/zoom-us/default.nix31
1 files changed, 24 insertions, 7 deletions
diff --git a/pkgs/applications/networking/instant-messengers/zoom-us/default.nix b/pkgs/applications/networking/instant-messengers/zoom-us/default.nix
index 2f08e8af6c90..98beced062a4 100644
--- a/pkgs/applications/networking/instant-messengers/zoom-us/default.nix
+++ b/pkgs/applications/networking/instant-messengers/zoom-us/default.nix
@@ -1,16 +1,22 @@
 { stdenv, fetchurl, system, makeWrapper, makeDesktopItem, autoPatchelfHook
-, dbus, glib, libGL, libX11, libXfixes, libuuid, libxcb, procps
-, qtbase, qtdeclarative, qtlocation, qtquickcontrols2, qtscript
-, qtwebchannel, qtwebengine
+# Dynamic libraries
+, dbus, glib, libGL, libX11, libXfixes, libuuid, libxcb, qtbase, qtdeclarative
+, qtlocation, qtquickcontrols2, qtscript, qtwebchannel, qtwebengine
+# Runtime
+, libjpeg_turbo, pciutils, procps
+, pulseaudioSupport ? true, libpulseaudio ? null
 }:
 
+assert pulseaudioSupport -> libpulseaudio != null;
+
 let
+  inherit (stdenv.lib) concatStringsSep makeBinPath optional optionalString;
 
-  version = "2.2.128100.0627";
+  version = "2.2.128200.0702";
   srcs = {
     x86_64-linux = fetchurl {
       url = "https://zoom.us/client/${version}/zoom_x86_64.tar.xz";
-      sha256 = "1x98zhs75c22x58zj4vzk8gb9yr7a9hfkbiqhjp5jrvccgz6ncin";
+      sha256 = "0n9kyj94bj35gbpwiz4kq7hc8pwfqwnfqf003g4c8gx5pda3g56w";
     };
   };
 
@@ -24,11 +30,17 @@ in stdenv.mkDerivation {
   buildInputs = [
     dbus glib libGL libX11 libXfixes libuuid libxcb qtbase qtdeclarative
     qtlocation qtquickcontrols2 qtscript qtwebchannel qtwebengine
+    libjpeg_turbo pciutils procps
   ];
 
+  runtimeDependencies = optional pulseaudioSupport libpulseaudio;
+
+  # Don't remove runtimeDependencies from RPATH via patchelf --shrink-rpath
+  dontPatchELF = true;
+
   installPhase =
     let
-      files = stdenv.lib.concatStringsSep " " [
+      files = concatStringsSep " " [
         "*.pcm"
         "*.png"
         "ZXMPPROOT.cer"
@@ -52,8 +64,13 @@ in stdenv.mkDerivation {
 
       cp -ar ${files} $packagePath
 
+      # TODO Patch this somehow; tries to dlopen './libturbojpeg.so' from cwd
+      ln -s $(readlink -e "${libjpeg_turbo.out}/lib/libturbojpeg.so") $packagePath/libturbojpeg.so
+
       makeWrapper $packagePath/zoom $out/bin/zoom-us \
-        --prefix PATH : "${procps}/bin"
+        --prefix PATH : "${makeBinPath [ pciutils procps ]}" \
+        --set QSG_INFO 1 \
+        --run "cd $packagePath"
 
       runHook postInstall
     '';