jicofo: add passthru.updateScript

mullvad-ns
tshaynik 3 years ago
parent 3646ad3900
commit 98d9d6fe9c
  1. 2
      pkgs/servers/jibri/default.nix
  2. 12
      pkgs/servers/jibri/update.sh

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

@ -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…
Cancel
Save