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:
parent
98d9d6fe9c
commit
fcc29f9599
|
@ -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 = ''
|
||||
|
|
12
pkgs/servers/web-apps/jitsi-meet/update.sh
Executable file
12
pkgs/servers/web-apps/jitsi-meet/update.sh
Executable 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"
|
Loading…
Reference in a new issue