From f4174f7df657800a2c450693f952869d7f58d074 Mon Sep 17 00:00:00 2001 From: aszlig Date: Mon, 27 May 2013 10:05:15 +0200 Subject: [PATCH] python-notify: Fix build. There is no new upstream version available and the latest upstream release is still using calls to prehistoric versions of libnotify. Most other distro have patched this already, so no need to patch again. Patch is from Fedora (which is the most referenced source seen so far). Additionally the configure script cannot find the correct path to the codegen executable, so we're patching it accordingly as well. Signed-off-by: aszlig --- pkgs/top-level/python-packages.nix | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index 076e8a8d9b97..03bb433ae9db 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -2672,6 +2672,18 @@ pythonPackages = python.modules // rec { sha256 = "1kh4spwgqxm534qlzzf2ijchckvs0pwjxl1irhicjmlg7mybnfvx"; }; + patches = pkgs.lib.singleton (fetchurl { + name = "libnotify07.patch"; + url = "http://pkgs.fedoraproject.org/cgit/notify-python.git/plain/" + + "libnotify07.patch?id2=289573d50ae4838a1658d573d2c9f4c75e86db0c"; + sha256 = "1lqdli13mfb59xxbq4rbq1f0znh6xr17ljjhwmzqb79jl3dig12z"; + }); + + postPatch = '' + sed -i -e '/^PYGTK_CODEGEN/s|=.*|="${pygtk}/bin/pygtk-codegen-2.0"|' \ + configure + ''; + buildInputs = [ python pkgs.pkgconfig pkgs.libnotify pygobject pygtk pkgs.glib pkgs.gtk pkgs.dbus_glib ]; postInstall = "cd $out/lib/python*/site-packages && ln -s gtk-*/pynotify .";