jicofo: add passthru.updateScript

This commit is contained in:
tshaynik 2021-09-09 15:16:47 -04:00
parent 3646ad3900
commit 98d9d6fe9c
2 changed files with 14 additions and 0 deletions

View file

@ -24,6 +24,8 @@ stdenv.mkDerivation rec {
runHook postInstall
'';
passthru.updateScript = ./update.sh;
meta = with lib; {
description = "JItsi BRoadcasting Infrastructure";
longDescription = ''

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