summary refs log tree commit diff
path: root/pkgs/development/libraries/libnotify/default.nix
blob: 00308bf9471a7ff54ba24f77b60cc9a3e1089c3d (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
{ stdenv, fetchurl, pkgconfig, automake, autoconf, libtool, glib, gdk_pixbuf }:

stdenv.mkDerivation rec {
  ver_maj = "0.7";
  ver_min = "6";
  name = "libnotify-${ver_maj}.${ver_min}";

  src = fetchurl {
    url = "mirror://gnome/sources/libnotify/${ver_maj}/${name}.tar.xz";
    sha256 = "0dyq8zgjnnzcah31axnx6afb21kl7bks1gvrg4hjh3nk02j1rxhf";
  };
  src_m4 = fetchurl {
    url = "mirror://gentoo/distfiles/introspection-20110205.m4.tar.bz2";
    sha256 = "1cnqh7aaji648nfd5537v7xaak8hgww3bpifhwam7bl0sc3ad523";
  };

  # 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/; # very obsolete but found no better
    description = "A library that sends desktop notifications to a notification daemon";
  };
}