summary refs log tree commit diff
path: root/pkgs/applications/misc/dunst/default.nix
blob: 919ad10fa706f48c22d919ebaba20c29896abf04 (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
35
36
37
{ stdenv, fetchFromGitHub, fetchpatch
, pkgconfig, which, perl, gtk2, xrandr
, cairo, dbus, gdk_pixbuf, glib, libX11, libXScrnSaver
, libXinerama, libnotify, libxdg_basedir, pango, xproto, librsvg
}:

stdenv.mkDerivation rec {
  name = "dunst-${version}";
  version = "1.2.0";

  src = fetchFromGitHub {
    owner = "dunst-project";
    repo = "dunst";
    rev = "v${version}";
    sha256 = "0jncnb4z4hg92ws08bkf52jswsd4vqlzyznwbynhh2jh6q0sl18b";
  };

  nativeBuildInputs = [ perl pkgconfig which ];

  buildInputs = [
    cairo dbus gdk_pixbuf glib libX11 libXScrnSaver
    libXinerama libnotify libxdg_basedir pango xproto librsvg gtk2 xrandr
  ];

  outputs = [ "out" "man" ];

  makeFlags = [ "PREFIX=$(out)" "VERSION=$(version)" ];

  meta = with stdenv.lib; {
    description = "Lightweight and customizable notification daemon";
    homepage = http://www.knopwob.org/dunst/;
    license = licenses.bsd3;
    # NOTE: 'unix' or even 'all' COULD work too, I'm not sure
    platforms = platforms.linux;
    maintainers = [ maintainers.domenkozar ];
  };
}