Merge pull request #173474 from tomjnixon/zoom_rebase

main
Doron Behar 2 years ago committed by GitHub
commit 5376ddfa03
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 35
      pkgs/applications/networking/instant-messengers/zoom-us/default.nix

@ -7,18 +7,27 @@
# Dynamic libraries # Dynamic libraries
, alsa-lib , alsa-lib
, atk , atk
, at-spi2-atk
, at-spi2-core
, cairo , cairo
, cups
, dbus , dbus
, expat
, libdrm
, libGL , libGL
, fontconfig , fontconfig
, freetype , freetype
, gtk3 , gtk3
, gdk-pixbuf , gdk-pixbuf
, glib , glib
, mesa
, nspr
, nss
, pango , pango
, wayland , wayland
, xorg , xorg
, libxkbcommon , libxkbcommon
, udev
, zlib , zlib
# Runtime # Runtime
, coreutils , coreutils
@ -33,13 +42,11 @@ let
inherit (stdenv.hostPlatform) system; inherit (stdenv.hostPlatform) system;
throwSystem = throw "Unsupported system: ${system}"; throwSystem = throw "Unsupported system: ${system}";
# Zoom versions are released at different times for each platform and linux # Zoom versions are released at different times for each platform
# is stuck on 5.9.6 until https://github.com/NixOS/nixpkgs/pull/166085 is
# resolved
version = { version = {
aarch64-darwin = "5.10.4.6592"; aarch64-darwin = "5.10.4.6592";
x86_64-darwin = "5.10.4.6592"; x86_64-darwin = "5.10.4.6592";
x86_64-linux = "5.9.6.2225"; x86_64-linux = "5.10.4.2845";
}.${system} or throwSystem; }.${system} or throwSystem;
srcs = { srcs = {
@ -53,7 +60,7 @@ let
}; };
x86_64-linux = fetchurl { x86_64-linux = fetchurl {
url = "https://zoom.us/client/${version}/zoom_x86_64.pkg.tar.xz"; url = "https://zoom.us/client/${version}/zoom_x86_64.pkg.tar.xz";
sha256 = "0rynpw2fjn9j75f34rk0rgqn9wzyzgzmwh1a3xcx7hqingv45k53"; sha256 = "9gspydrGaEjzAM0nK1u0XNm07HTupJ2wnPxCFWy+Nts=";
}; };
}; };
@ -61,28 +68,40 @@ let
# $ LD_LIBRARY_PATH=$NIX_LD_LIBRARY_PATH:$PWD ldd zoom | grep 'not found' # $ LD_LIBRARY_PATH=$NIX_LD_LIBRARY_PATH:$PWD ldd zoom | grep 'not found'
alsa-lib alsa-lib
atk atk
at-spi2-atk
at-spi2-core
cairo cairo
cups
dbus dbus
expat
libdrm
libGL libGL
fontconfig fontconfig
freetype freetype
gtk3 gtk3
gdk-pixbuf gdk-pixbuf
glib glib
mesa
nspr
nss
pango pango
stdenv.cc.cc stdenv.cc.cc
wayland wayland
xorg.libX11 xorg.libX11
xorg.libxcb xorg.libxcb
xorg.libXcomposite xorg.libXcomposite
xorg.libXdamage
xorg.libXext xorg.libXext
libxkbcommon libxkbcommon
xorg.libXrandr
xorg.libXrender xorg.libXrender
zlib xorg.libxshmfence
xorg.xcbutilimage xorg.xcbutilimage
xorg.xcbutilkeysyms xorg.xcbutilkeysyms
xorg.libXfixes xorg.libXfixes
xorg.libXtst xorg.libXtst
udev
zlib
] ++ lib.optional (pulseaudioSupport) libpulseaudio); ] ++ lib.optional (pulseaudioSupport) libpulseaudio);
in in
@ -134,7 +153,9 @@ stdenv.mkDerivation rec {
done done
# ZoomLauncher sets LD_LIBRARY_PATH before execing zoom # ZoomLauncher sets LD_LIBRARY_PATH before execing zoom
wrapProgram $out/opt/zoom/zoom \ # IPC breaks if the executable name does not end in 'zoom'
mv $out/opt/zoom/zoom $out/opt/zoom/.zoom
makeWrapper $out/opt/zoom/.zoom $out/opt/zoom/zoom \
--prefix LD_LIBRARY_PATH ":" ${libs} --prefix LD_LIBRARY_PATH ":" ${libs}
rm $out/bin/zoom rm $out/bin/zoom

Loading…
Cancel
Save