diff options
Diffstat (limited to 'pkgs/applications/networking/instant-messengers/zoom-us/default.nix')
-rw-r--r-- | pkgs/applications/networking/instant-messengers/zoom-us/default.nix | 28 |
1 files changed, 15 insertions, 13 deletions
diff --git a/pkgs/applications/networking/instant-messengers/zoom-us/default.nix b/pkgs/applications/networking/instant-messengers/zoom-us/default.nix index f85fa1e28f6..f1a0de73383 100644 --- a/pkgs/applications/networking/instant-messengers/zoom-us/default.nix +++ b/pkgs/applications/networking/instant-messengers/zoom-us/default.nix @@ -44,24 +44,26 @@ let throwSystem = throw "Unsupported system: ${system}"; # Zoom versions are released at different times for each platform - version = { - aarch64-darwin =import ./arm64-darwin-version.nix; - x86_64-darwin = import ./x86_64-darwin-version.nix; - x86_64-linux = import ./x86_64-linux-version.nix; - }.${system} or throwSystem; + # and often with different versions. We write them on three lines + # like this (rather than using {}) so that the updater script can + # find where to edit them. + versions.aarch64-darwin = "5.11.9.10046"; + versions.x86_64-darwin = "5.11.9.10046"; + versions.x86_64-linux = "5.11.10.4400"; srcs = { aarch64-darwin = fetchurl { - url = "https://zoom.us/client/${version}/Zoom.pkg?archType=arm64"; - sha256 = import ./arm64-darwin-sha.nix; + url = "https://zoom.us/client/${versions.aarch64-darwin}/zoomusInstallerFull.pkg?archType=arm64"; + name = "zoomusInstallerFull.pkg"; + hash = "sha256-Z+K811azMRnhptZ1UvM+o5IgE0F4p9BrntJC9IgPU7U="; }; x86_64-darwin = fetchurl { - url = "https://zoom.us/client/${version}/Zoom.pkg"; - sha256 = import ./x86_64-darwin-sha.nix; + url = "https://zoom.us/client/${versions.x86_64-darwin}/zoomusInstallerFull.pkg"; + hash = "sha256-7U7qT3xlm5LqcJByMWxhZnqs6XBzylEGhqTNUgiaXJY="; }; x86_64-linux = fetchurl { - url = "https://zoom.us/client/${version}/zoom_x86_64.pkg.tar.xz"; - sha256 = import ./x86_64-linux-sha.nix; + url = "https://zoom.us/client/${versions.x86_64-linux}/zoom_x86_64.pkg.tar.xz"; + hash = "sha256-Pi1MtuCHzkQACamsNOIS6pbM03L1CmyosbpdrYVNCkQ="; }; }; @@ -109,7 +111,7 @@ let in stdenv.mkDerivation rec { pname = "zoom"; - inherit version; + version = versions.${system} or throwSystem; src = srcs.${system} or throwSystem; @@ -150,7 +152,7 @@ stdenv.mkDerivation rec { substituteInPlace $out/share/applications/Zoom.desktop \ --replace "Exec=/usr/bin/zoom" "Exec=$out/bin/zoom" - for i in zopen zoom ZoomLauncher; do + for i in aomhost zopen zoom ZoomLauncher; do patchelf --set-interpreter "$(cat $NIX_CC/nix-support/dynamic-linker)" $out/opt/zoom/$i done |