From dc70cd102658c7632f39536d4437d646a65ed69b Mon Sep 17 00:00:00 2001 From: Ioannis Koutras Date: Mon, 26 Dec 2016 21:10:09 +0200 Subject: [PATCH] syncthing-gtk: 0.6.3 -> 0.9.2.3 --- pkgs/top-level/python-packages.nix | 17 +++++++++++++---- 1 file changed, 13 insertions(+), 4 deletions(-) diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index da008a7d6a3f..dee76b8bf29e 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -25056,19 +25056,28 @@ in { }; syncthing-gtk = buildPythonPackage rec { - version = "0.6.3"; + version = "0.9.2.3"; name = "syncthing-gtk-${version}"; src = pkgs.fetchFromGitHub { owner = "syncthing"; repo = "syncthing-gtk"; rev = "v${version}"; - sha256 = "1qa5bw2qizjiqvkms8i31wsjf8cw9p0ciamxgfgq6n37wcalv6ms"; + sha256 = "0chl0f0kp6z0z00d1f3xjlicjfr9rzabw39wmjr66fwb5w5hcc42"; }; disabled = isPy3k; - propagatedBuildInputs = with self; [ pkgs.syncthing dateutil pyinotify pkgs.libnotify pkgs.psmisc - pygobject3 pkgs.gtk3 ]; + propagatedBuildInputs = with self; [ pkgs.syncthing dateutil pyinotify + pkgs.libnotify + (pkgs.librsvg.override { withGTK = true; }) + pkgs.psmisc pygobject3 pkgs.gtk3 + ]; + + preFixup = '' + wrapProgram $out/bin/syncthing-gtk \ + --set GDK_PIXBUF_MODULE_FILE "$GDK_PIXBUF_MODULE_FILE" \ + --prefix GI_TYPELIB_PATH : "$GI_TYPELIB_PATH" + ''; patchPhase = '' substituteInPlace "scripts/syncthing-gtk" \