3
0
Fork 0
forked from mirrors/nixpkgs

jitsi-meet: add passthru.updateScript

Pull version number from stable releases, to ensure
that the latest stable release is used.
This commit is contained in:
tshaynik 2021-09-09 15:27:51 -04:00
parent 98d9d6fe9c
commit fcc29f9599
2 changed files with 14 additions and 0 deletions

View file

@ -22,6 +22,8 @@ stdenv.mkDerivation rec {
single-host-smoke-test = nixosTests.jitsi-meet;
};
passthru.updateScript = ./update.sh;
meta = with lib; {
description = "Secure, Simple and Scalable Video Conferences";
longDescription = ''

View file

@ -0,0 +1,12 @@
#!/usr/bin/env nix-shell
#!nix-shell -i bash -p curl pup common-updater-scripts
set -eu -o pipefail
version="$(curl https://download.jitsi.org/stable/ | \
pup 'a[href] text{}' | \
awk -F'[_-]' '/jitsi-meet-web_/ {printf $4"\n"}' | \
sort -u | \
tail -n 1)"
update-source-version jitsi-meet "$version"