2021-10-14 00:43:12 +00:00
|
|
|
{ lib, stdenv, fetchFromGitHub, autoconf, ncurses, pcre }:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2021-09-18 10:52:07 +00:00
|
|
|
pname = "ccze";
|
|
|
|
version = "0.2.1-2";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2021-10-14 00:43:12 +00:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "madhouse";
|
|
|
|
repo = "ccze";
|
|
|
|
rev = "ccze-${version}";
|
|
|
|
hash = "sha256-LVwmbrq78mZcAEuAqjXTqLE5we83H9mcMPtxQx2Tn/c=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2021-10-14 00:43:12 +00:00
|
|
|
nativeBuildInputs = [ autoconf ];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2021-10-14 00:43:12 +00:00
|
|
|
buildInputs = [ ncurses pcre ];
|
|
|
|
|
|
|
|
preConfigure = ''
|
|
|
|
autoheader
|
|
|
|
autoconf
|
|
|
|
'';
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
meta = with lib; {
|
2020-04-24 23:36:52 +00:00
|
|
|
description = "Fast, modular log colorizer";
|
|
|
|
longDescription = ''
|
|
|
|
Fast log colorizer written in C, intended to be a drop-in replacement
|
|
|
|
for the Perl colorize tool. Includes plugins for a variety of log
|
|
|
|
formats (Apache, Postfix, Procmail, etc.).
|
|
|
|
'';
|
|
|
|
license = licenses.gpl2;
|
|
|
|
maintainers = with maintainers; [ malyn ];
|
|
|
|
platforms = platforms.linux;
|
|
|
|
};
|
|
|
|
}
|