jicofo: add passthru.updateScript

This commit is contained in:
tshaynik 2021-09-09 15:08:30 -04:00
parent fdc4d771f9
commit 3646ad3900
2 changed files with 14 additions and 0 deletions

View File

@ -32,6 +32,8 @@ stdenv.mkDerivation {
single-node-smoke-test = nixosTests.jitsi-meet;
};
passthru.updateScript = ./update.sh;
meta = with lib; {
description = "A server side focus component used in Jitsi Meet conferences";
longDescription = ''

12
pkgs/servers/jicofo/update.sh Executable file
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'[_-]' '/jicofo/ {printf $2"-"$3"\n"}' | \
sort -u | \
tail -n 1)"
update-source-version jicofo "$version"