libnotify: major update, no dependency on gtk+ now

As a result it can be easily used with both gtk2 and gtk3.
This commit is contained in:
Vladimír Čunát 2013-03-09 22:50:24 +01:00
parent 629c36cfef
commit 00e272a11c

View File

@ -1,17 +1,34 @@
{ stdenv, fetchurl, pkgconfig, dbus, dbus_glib, gtk, glib }:
{ stdenv, fetchurl, pkgconfig, automake, autoconf, libtool, glib, gdk_pixbuf }:
stdenv.mkDerivation rec {
name = "libnotify-0.4.5";
ver_maj = "0.7";
ver_min = "5";
name = "libnotify-${ver_maj}.${ver_min}";
src = fetchurl {
url = "http://www.galago-project.org/files/releases/source/libnotify/${name}.tar.gz";
sha256 = "1ndh7wpm9qh12vm5avjrq2xv1j681j9qq6j2fyj6a2shl67dp687";
url = "mirror://gnome/sources/libnotify/${ver_maj}/${name}.tar.xz";
sha256 = "0lmnzy16vdjs9vlgdm0b7wfyi1nh526hv2dpb7vxb92bhx3wny23";
};
src_m4 = fetchurl {
url = "mirror://gentoo/distfiles/introspection-20110205.m4.tar.bz2";
sha256 = "1cnqh7aaji648nfd5537v7xaak8hgww3bpifhwam7bl0sc3ad523";
};
buildInputs = [ pkgconfig dbus.libs dbus_glib gtk glib ];
# see Gentoo ebuild - we don't need to depend on gtk+(2/3)
preConfigure = ''
cd m4
tar xvf ${src_m4}
cd ..
sed -i -e 's:noinst_PROG:check_PROG:' tests/Makefile.am || die
sed -i -e '/PKG_CHECK_MODULES(TESTS/d' configure.ac || die
AT_M4DIR=. autoreconf
'';
buildInputs = [ pkgconfig automake autoconf glib gdk_pixbuf ];
meta = {
homepage = http://galago-project.org/;
homepage = http://galago-project.org/; # very obsolete but found no better
description = "A library that sends desktop notifications to a notification daemon";
};
}