mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-19 04:02:10 +00:00
jicofo: add passthru.updateScript
This commit is contained in:
parent
fdc4d771f9
commit
3646ad3900
|
@ -32,6 +32,8 @@ stdenv.mkDerivation {
|
|||
single-node-smoke-test = nixosTests.jitsi-meet;
|
||||
};
|
||||
|
||||
passthru.updateScript = ./update.sh;
|
||||
|
||||
meta = with lib; {
|
||||
description = "A server side focus component used in Jitsi Meet conferences";
|
||||
longDescription = ''
|
||||
|
|
12
pkgs/servers/jicofo/update.sh
Executable file
12
pkgs/servers/jicofo/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'[_-]' '/jicofo/ {printf $2"-"$3"\n"}' | \
|
||||
sort -u | \
|
||||
tail -n 1)"
|
||||
|
||||
update-source-version jicofo "$version"
|
Loading…
Reference in a new issue