Skip to content

Commit

Permalink
Merge pull request #120242 from doronbehar/pkg/zoom-us-backport
Browse files Browse the repository at this point in the history
[20.09] zoom-us: Use the tarabll again
  • Loading branch information
Mic92 committed Apr 23, 2021
2 parents f6984a4 + d2aab38 commit aeed390
Showing 1 changed file with 10 additions and 14 deletions.
24 changes: 10 additions & 14 deletions pkgs/applications/networking/instant-messengers/zoom-us/default.nix
Expand Up @@ -7,7 +7,6 @@
, atk
, cairo
, dbus
, dpkg
, libGL
, fontconfig
, freetype
Expand All @@ -33,11 +32,10 @@ let
version = "5.6.16775.0418";
srcs = {
x86_64-linux = fetchurl {
url = "https://zoom.us/client/${version}/zoom_amd64.deb";
sha256 = "1fmzwxq8jv5k1b2kvg1ij9g6cdp1hladd8vm3cxzd8fywdjcndim";
url = "https://zoom.us/client/${version}/zoom_x86_64.pkg.tar.xz";
sha256 = "twtxzniojgyLTx6Kda8Ej96uyw2JQB/jIhLdTgTqpCo=";
};
};
dontUnpack = true;

libs = lib.makeLibraryPath ([
# $ LD_LIBRARY_PATH=$NIX_LD_LIBRARY_PATH:$PWD ldd zoom | grep 'not found'
Expand Down Expand Up @@ -67,24 +65,22 @@ let
xorg.libXtst
] ++ lib.optional (pulseaudioSupport) libpulseaudio);

in stdenv.mkDerivation {
name = "zoom-${version}";
in stdenv.mkDerivation rec {
pname = "zoom";
inherit version;
src = srcs.${stdenv.hostPlatform.system};

dontUnpack = true;

nativeBuildInputs = [
dpkg
makeWrapper
];

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

installPhase = ''
runHook preInstall
mkdir $out
mv usr/* $out/
mv opt $out/
tar -C $out -xf ${src}
mv $out/usr/* $out/
runHook postInstall
'';

Expand Down

0 comments on commit aeed390

Please sign in to comment.