1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-11-19 04:02:10 +00:00

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"