2013-08-07 14:08:05 +02:00
|
|
|
{ stdenv, fetchgit, coreutils , unzip, which, pkgconfig , dbus
|
2013-05-13 18:48:29 +02:00
|
|
|
, freetype, xdg_utils , libXext, glib, pango , cairo, libX11, libnotify
|
|
|
|
, libxdg_basedir , libXScrnSaver, xproto, libXinerama , perl, gdk_pixbuf
|
2013-03-20 21:19:43 +01:00
|
|
|
}:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2013-08-07 14:08:05 +02:00
|
|
|
rev = "6a3a855b48a3db64821d1cf8a91c5ee2815a2b2d";
|
|
|
|
name = "dunst-${rev}";
|
2013-03-20 21:19:43 +01:00
|
|
|
|
2013-08-07 14:08:05 +02:00
|
|
|
# 1.0.0 release doesn't include 100% CPU fix
|
|
|
|
# https://github.com/knopwob/dunst/issues/98
|
|
|
|
src = fetchgit {
|
|
|
|
inherit rev;
|
|
|
|
url = "https://github.com/knopwob/dunst.git";
|
|
|
|
sha256 = "0m7yki16d72xm9n2m2fjszd8phqpn5b95q894cz75pmd0sv1j6bj";
|
2013-03-20 21:19:43 +01:00
|
|
|
};
|
|
|
|
|
2013-05-13 18:48:29 +02:00
|
|
|
patchPhase = ''
|
|
|
|
substituteInPlace "settings.c" \
|
|
|
|
--replace "xdgConfigOpen(\"dunst/dunstrc\", \"r\", &xdg" "fopen(\"$out/share/dunst/dunstrc\", \"r\""
|
|
|
|
'';
|
|
|
|
|
2013-03-20 21:19:43 +01:00
|
|
|
buildInputs =
|
2013-05-13 18:48:29 +02:00
|
|
|
[ coreutils unzip which pkgconfig dbus freetype libnotify gdk_pixbuf
|
2013-03-20 21:19:43 +01:00
|
|
|
xdg_utils libXext glib pango cairo libX11 libxdg_basedir
|
|
|
|
libXScrnSaver xproto libXinerama perl];
|
|
|
|
|
|
|
|
buildPhase = ''
|
2013-08-07 14:08:05 +02:00
|
|
|
export VERSION=${rev};
|
2013-03-20 21:19:43 +01:00
|
|
|
export PREFIX=$out;
|
|
|
|
make dunst;
|
|
|
|
'';
|
|
|
|
|
|
|
|
meta = {
|
|
|
|
description = "lightweight and customizable notification daemon";
|
|
|
|
homepage = http://www.knopwob.org/dunst/;
|
|
|
|
license = stdenv.lib.licenses.bsd3;
|
2013-03-22 13:00:49 +01:00
|
|
|
# NOTE: 'unix' or even 'all' COULD work too, I'm not sure
|
|
|
|
platforms = stdenv.lib.platforms.linux;
|
2013-05-13 18:48:29 +02:00
|
|
|
maintainers = [ stdenv.lib.maintainers.iElectric ];
|
2013-03-20 21:19:43 +01:00
|
|
|
};
|
|
|
|
}
|