Skip to content

Commit

Permalink
Merge pull request #120038 from Mic92/zoom-backport
Browse files Browse the repository at this point in the history
  • Loading branch information
doronbehar committed Apr 21, 2021
2 parents 5c0e6a8 + d6c2346 commit 1260397
Showing 1 changed file with 12 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
, atk
, cairo
, dbus
, dpkg
, libGL
, fontconfig
, freetype
Expand All @@ -29,11 +30,11 @@
assert pulseaudioSupport -> libpulseaudio != null;

let
version = "5.6.13632.0328";
version = "5.6.16775.0418";
srcs = {
x86_64-linux = fetchurl {
url = "https://zoom.us/client/${version}/zoom_x86_64.pkg.tar.xz";
sha256 = "0nskpg3rbv40jcbih95sfdr0kfv5hjv50z9jdz1cddl8v7hbqg71";
url = "https://zoom.us/client/${version}/zoom_amd64.deb";
sha256 = "1fmzwxq8jv5k1b2kvg1ij9g6cdp1hladd8vm3cxzd8fywdjcndim";
};
};
dontUnpack = true;
Expand Down Expand Up @@ -69,17 +70,21 @@ let
in stdenv.mkDerivation {
name = "zoom-${version}";

dontUnpack = true;

nativeBuildInputs = [
dpkg
makeWrapper
];

unpackCmd = ''
mkdir out
dpkg -x $curSrc out
'';

installPhase = ''
runHook preInstall
mkdir $out
tar -C $out -xf ${srcs.${stdenv.hostPlatform.system}}
mv $out/usr/* $out/
mv usr/* $out/
mv opt $out/
runHook postInstall
'';

Expand Down

0 comments on commit 1260397

Please sign in to comment.