xpra: add update script

This commit is contained in:
Louis Bettens 2021-01-10 19:21:27 +01:00
parent c23468489c
commit a129a5e2d9
2 changed files with 9 additions and 1 deletions

View file

@ -110,7 +110,10 @@ in buildPythonApplication rec {
enableParallelBuilding = true;
passthru = { inherit xf86videodummy; };
passthru = {
inherit xf86videodummy;
updateScript = ./update.sh;
};
meta = {
homepage = "http://xpra.org/";

5
pkgs/tools/X11/xpra/update.sh Executable file
View file

@ -0,0 +1,5 @@
#!/usr/bin/env nix-shell
#!nix-shell -i bash -p curl perl common-updater-scripts
version=$(curl https://xpra.org/src/ | perl -ne 'print "$1\n" if /xpra-([[:digit:].]+)\./' | sort -V | tail -n1)
update-source-version xpra "$version"