about summary refs log tree commit diff
path: root/pkgs/applications/misc/dunst/default.nix
blob: 221bd3c4bf5e31618b71b5c13a8abafc585f4ea5 (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
38
39
40
41
42
43
44
{ stdenv, fetchFromGitHub, fetchpatch
, pkgconfig, which, perl
, cairo, dbus, freetype, gdk_pixbuf, glib, libX11, libXScrnSaver
, libXext, libXinerama, libnotify, libxdg_basedir, pango, xproto
, librsvg
}:

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

  src = fetchFromGitHub {
    owner = "knopwob";
    repo = "dunst";
    rev = "v${version}";
    sha256 = "102s0rkcdz22hnacsi3dhm7kj3lsw9gnikmh3a7wk862nkvvwjmk";
  };

  patches = [(fetchpatch {
    name = "add-svg-support.patch";
    url = "https://github.com/knopwob/dunst/commit/63b11141185d1d07a6d12212257a543e182d250a.patch";
    sha256 = "0giiaj5zjim7xqcav5ij5gn4x6nnchkllwcx0ln16j0p3vbi4y4x";
  })];

  nativeBuildInputs = [ perl pkgconfig which ];

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

  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 ];
  };
}