about summary refs log tree commit diff
path: root/pkgs/applications/misc/herbe/default.nix
blob: 9ea08f0dc83cd08ccb8ba72978461e39736c4ed8 (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
{ stdenv, lib, fetchFromGitHub, libX11, libXft, freetype, patches ? [ ],
  extraLibs ? [ ] }:

stdenv.mkDerivation rec {
  pname = "herbe";
  version = "1.0.0";

  src = fetchFromGitHub {
    owner = "dudik";
    repo = pname;
    rev = version;
    sha256 = "0358i5jmmlsvy2j85ij7m1k4ar2jr5lsv7y1c58dlf9710h186cv";
  };

  inherit patches;

  postPatch = ''
    sed -i 's_/usr/include/freetype2_${freetype.dev}/include/freetype2_' Makefile
  '';

  buildInputs = [ libX11 libXft freetype ] ++ extraLibs;

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

  meta = with lib; {
    description = "Daemon-less notifications without D-Bus";
    homepage = "https://github.com/dudik/herbe";
    license = licenses.mit;
    # NOTE: Could also work on 'unix'.
    platforms = platforms.linux;
    maintainers = with maintainers; [ wishfort36 ];
    mainProgram = "herbe";
  };
}