@@ -0,0 +1,33 @@
1+{ stdenv, lib, fetchFromGitHub, libX11, libXft, freetype, patches ? [ ],
2+ extraLibs ? [ ] }:
3+
4+stdenv.mkDerivation rec {
5+ pname = "herbe";
6+ version = "1.0.0";
7+
8+ src = fetchFromGitHub {
9+ owner = "dudik";
10+ repo = pname;
11+ rev = version;
12+ sha256 = "0358i5jmmlsvy2j85ij7m1k4ar2jr5lsv7y1c58dlf9710h186cv";
13+ };
14+
15+ inherit patches;
16+
17+ postPatch = ''
18+ sed -i 's_/usr/include/freetype2_${freetype.dev}/include/freetype2_' Makefile
19+ '';
20+
21+ buildInputs = [ libX11 libXft freetype ] ++ extraLibs;
22+
23+ makeFlags = [ "PREFIX=$(out)" ];
24+
25+ meta = with lib; {
26+ description = "Daemon-less notifications without D-Bus";
27+ homepage = "https://github.com/dudik/herbe";
28+ license = licenses.mit;
29+ # NOTE: Could also work on 'unix'.
30+ platforms = platforms.linux;
31+ maintainers = with maintainers; [ wishfort36 ];
32+ };
33+}