mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-02-18 17:10:27 +00:00
Merge pull request #96867 from alevy/zoom
This commit is contained in:
commit
d4173ccc04
|
@ -15,11 +15,11 @@ assert pulseaudioSupport -> libpulseaudio != null;
|
|||
let
|
||||
inherit (stdenv.lib) concatStringsSep makeBinPath optional;
|
||||
|
||||
version = "5.1.422789.0705";
|
||||
version = "5.2.458699.0906";
|
||||
srcs = {
|
||||
x86_64-linux = fetchurl {
|
||||
url = "https://zoom.us/client/${version}/zoom_x86_64.tar.xz";
|
||||
sha256 = "1sc454xadxsbxxyb68qi7ac20yq0vymzzw1i07z19c9idfpjy75f";
|
||||
sha256 = "0cwai5v2m99cvw1dnysl88fi97dwm6rq7xv3y0ydgg3499n8cjpf";
|
||||
};
|
||||
};
|
||||
|
||||
|
|
|
@ -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"
|
||||
|
|
Loading…
Reference in a new issue