git.iko.soy/typeable/nixpkgs
on master help sign in
Merge pull request #108969 from lourkeur/update/xpra
commitebd22859f2a352678563a0bbc54be654945a8a59 authorSandro <sandro.jaeckel@gmail.com> dateFri 15 Jan 2021, 10:52 (6 years ago) parentd55425de3dac9b
2 files changed+11−3
pkgs/tools/X11/xpra/default.nix+6−3 pkgs/tools/X11/xpra/update.sh+5
pkgs/tools/X11/xpra/default.nix+6−3
@@ -30,11 +30,11 @@ let
3030
3131in buildPythonApplication rec {
3232 pname = "xpra";
33− version = "4.0.2";
33+ version = "4.0.6";
3434
3535 src = fetchurl {
3636 url = "https://xpra.org/src/${pname}-${version}.tar.xz";
37− sha256 = "1cs39jzi59hkl421xmhi549ndmdfzkg0ap45f4nlsn9zr9zwmp3x";
37+ sha256 = "nGcvbZFGYd2nQ75LL4YN+xcWb7UsViA3OAqpcrTwieg=";
3838 };
3939
4040 patches = [
@@ -110,7 +110,10 @@ in buildPythonApplication rec {
110110
111111 enableParallelBuilding = true;
112112
113− passthru = { inherit xf86videodummy; };
113+ passthru = {
114+ inherit xf86videodummy;
115+ updateScript = ./update.sh;
116+ };
114117
115118 meta = {
116119 homepage = "http://xpra.org/";
pkgs/tools/X11/xpra/update.shnew file+5
@@ -0,0 +1,5 @@
1+#!/usr/bin/env nix-shell
2+#!nix-shell -i bash -p curl perl common-updater-scripts
3+
4+version=$(curl https://xpra.org/src/ | perl -ne 'print "$1\n" if /xpra-([[:digit:].]+)\./' | sort -V | tail -n1)
5+update-source-version xpra "$version"