lol
1{ lib, stdenv, fetchFromGitHub, autoconf, ncurses, pcre }:
2
3stdenv.mkDerivation rec {
4 pname = "ccze";
5 version = "0.2.1-2";
6
7 src = fetchFromGitHub {
8 owner = "madhouse";
9 repo = "ccze";
10 rev = "ccze-${version}";
11 hash = "sha256-LVwmbrq78mZcAEuAqjXTqLE5we83H9mcMPtxQx2Tn/c=";
12 };
13
14 nativeBuildInputs = [ autoconf ];
15
16 buildInputs = [ ncurses pcre ];
17
18 preConfigure = ''
19 autoheader
20 autoconf
21 '';
22
23 meta = with lib; {
24 description = "Fast, modular log colorizer";
25 longDescription = ''
26 Fast log colorizer written in C, intended to be a drop-in replacement
27 for the Perl colorize tool. Includes plugins for a variety of log
28 formats (Apache, Postfix, Procmail, etc.).
29 '';
30 license = licenses.gpl2;
31 maintainers = with maintainers; [ malyn ];
32 platforms = platforms.linux;
33 };
34}