jicofo: add passthru.updateScript
This commit is contained in:
parent
3646ad3900
commit
98d9d6fe9c
|
@ -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
12
pkgs/servers/jibri/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'[_-]' '/jibri/ {printf $2"-"$3"-"$4"\n"}' | \
|
||||
sort -u | \
|
||||
tail -n 1)"
|
||||
|
||||
update-source-version jibri "$version"
|
Loading…
Reference in a new issue