2015-06-04 08:42:37 +02:00
|
|
|
{ stdenv, fetchurl, coreutils, unzip, which, pkgconfig, dbus
|
|
|
|
, freetype, xdg_utils, libXext, glib, pango, cairo, libX11, libnotify
|
|
|
|
, libxdg_basedir, libXScrnSaver, xproto, libXinerama, perl, gdk_pixbuf
|
|
|
|
, dbus_daemon, makeWrapper
|
2013-03-20 21:19:43 +01:00
|
|
|
}:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2014-08-12 21:23:37 +02:00
|
|
|
name = "dunst-1.1.0";
|
|
|
|
version = "1.1.0";
|
2013-03-20 21:19:43 +01:00
|
|
|
|
2014-08-12 21:23:37 +02:00
|
|
|
src = fetchurl {
|
|
|
|
url = "https://github.com/knopwob/dunst/archive/v${version}.tar.gz";
|
|
|
|
sha256 = "0x95f57s0a96c4lifxdpf73v706iggwmdw8742mabbjnxq55l1qs";
|
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
|
2015-06-04 08:42:37 +02:00
|
|
|
libXScrnSaver xproto libXinerama perl dbus_daemon makeWrapper ];
|
2013-03-20 21:19:43 +01:00
|
|
|
|
|
|
|
buildPhase = ''
|
2014-08-12 21:23:37 +02:00
|
|
|
export VERSION=${version};
|
2013-03-20 21:19:43 +01:00
|
|
|
export PREFIX=$out;
|
|
|
|
make dunst;
|
|
|
|
'';
|
|
|
|
|
2015-06-04 08:42:37 +02:00
|
|
|
postFixup = ''
|
|
|
|
wrapProgram "$out/bin/dunst" \
|
|
|
|
--prefix PATH : '${dbus_daemon}/bin'
|
|
|
|
'';
|
|
|
|
|
2013-03-20 21:19:43 +01:00
|
|
|
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
|
|
|
};
|
|
|
|
}
|