diff options
author | tshaynik <tshaynik@protonmail.com> | 2021-09-09 15:16:47 -0400 |
---|---|---|
committer | tshaynik <tshaynik@protonmail.com> | 2021-09-09 15:16:47 -0400 |
commit | 98d9d6fe9c88e4b58cf02295c2982bb582482322 (patch) | |
tree | 0701ecf52e3c9858fd126bcfce95c07dd6cba6e3 | |
parent | 3646ad3900bd85117347e4f13c72c113f4de27e8 (diff) | |
download | nixpkgs-98d9d6fe9c88e4b58cf02295c2982bb582482322.tar nixpkgs-98d9d6fe9c88e4b58cf02295c2982bb582482322.tar.gz nixpkgs-98d9d6fe9c88e4b58cf02295c2982bb582482322.tar.bz2 nixpkgs-98d9d6fe9c88e4b58cf02295c2982bb582482322.tar.lz nixpkgs-98d9d6fe9c88e4b58cf02295c2982bb582482322.tar.xz nixpkgs-98d9d6fe9c88e4b58cf02295c2982bb582482322.tar.zst nixpkgs-98d9d6fe9c88e4b58cf02295c2982bb582482322.zip |
jicofo: add passthru.updateScript
-rw-r--r-- | pkgs/servers/jibri/default.nix | 2 | ||||
-rwxr-xr-x | pkgs/servers/jibri/update.sh | 12 |
2 files changed, 14 insertions, 0 deletions
diff --git a/pkgs/servers/jibri/default.nix b/pkgs/servers/jibri/default.nix index 39377e09964..91d6a7ddf04 100644 --- a/pkgs/servers/jibri/default.nix +++ b/pkgs/servers/jibri/default.nix @@ -24,6 +24,8 @@ stdenv.mkDerivation rec { runHook postInstall ''; + passthru.updateScript = ./update.sh; + meta = with lib; { description = "JItsi BRoadcasting Infrastructure"; longDescription = '' diff --git a/pkgs/servers/jibri/update.sh b/pkgs/servers/jibri/update.sh new file mode 100755 index 00000000000..9606a5170c1 --- /dev/null +++ b/pkgs/servers/jibri/update.sh @@ -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" |