Skip to content

Commit

Permalink
zoom-us: 5.2.446620.0816 -> 5.2.454870.0831
Browse files Browse the repository at this point in the history
thanks to @doronbehar for changes to update script
  • Loading branch information
alevy committed Sep 1, 2020
1 parent 71ac9f1 commit 548ded0
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 14 deletions.
Expand Up @@ -15,11 +15,11 @@ assert pulseaudioSupport -> libpulseaudio != null;
let
inherit (stdenv.lib) concatStringsSep makeBinPath optional;

version = "5.2.446620.0816";
version = "5.2.454870.0831";
srcs = {
x86_64-linux = fetchurl {
url = "https://zoom.us/client/${version}/zoom_x86_64.tar.xz";
sha256 = "0d7x4ji5l0rpanh0md75lywa8l9v6pd8bba5dba2xbfp7x9c3c4q";
sha256 = "198p7a6kd5bakywj314lwizsy03g3j7w5zd7j3xghmpcfjz5drbn";
};
};

Expand Down
15 changes: 3 additions & 12 deletions pkgs/applications/networking/instant-messengers/zoom-us/update.sh
@@ -1,17 +1,8 @@
#!/usr/bin/env nix-shell
#!nix-shell -i bash -p curl pcre common-updater-scripts
#!nix-shell -i bash -p curl pup common-updater-scripts

set -eu -o pipefail

oldVersion=$(nix-instantiate --eval -E "with import ./. {}; lib.getVersion zoom-us" | tr -d '"')
version="$(curl -sI https://zoom.us/client/latest/zoom_x86_64.tar.xz | grep -Fi 'Location:' | pcregrep -o1 '/(([0-9]\.?)+)/')"
version="$(curl -Ls https://zoom.us/download\?os\=linux | pup '.linux-ver-text text{}' | cut -d' ' -f2)"

if [ ! "${oldVersion}" = "${version}" ]; then
update-source-version zoom-us "$version"
nixpkgs="$(git rev-parse --show-toplevel)"
default_nix="$nixpkgs/pkgs/applications/networking/instant-messengers/zoom-us/default.nix"
git add "${default_nix}"
git commit -m "zoom-us: ${oldVersion} -> ${version}"
else
echo "zoom-us is already up-to-date"
fi
update-source-version zoom-us "$version"

0 comments on commit 548ded0

Please sign in to comment.