mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-17 23:36:17 +01:00
jicofo: add passthru.updateScript
This commit is contained in:
parent
3646ad3900
commit
98d9d6fe9c
2 changed files with 14 additions and 0 deletions
|
@ -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