Merge pull request #108969 from lourkeur/update/xpra

This commit is contained in:
Sandro 2021-01-15 10:52:16 +01:00 committed by GitHub
commit ebd22859f2
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 11 additions and 3 deletions

View file

@ -30,11 +30,11 @@ let
in buildPythonApplication rec {
pname = "xpra";
version = "4.0.2";
version = "4.0.6";
src = fetchurl {
url = "https://xpra.org/src/${pname}-${version}.tar.xz";
sha256 = "1cs39jzi59hkl421xmhi549ndmdfzkg0ap45f4nlsn9zr9zwmp3x";
sha256 = "nGcvbZFGYd2nQ75LL4YN+xcWb7UsViA3OAqpcrTwieg=";
};
patches = [
@ -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"