nixpkgs/pkgs/tools/misc/ccze/default.nix

35 lines
842 B
Nix
Raw Normal View History

2021-09-19 16:56:10 +00:00
{ lib, stdenv, fetchFromGitHub, autoconf, ncurses, pcre }:
2015-01-24 19:17:53 +00:00
stdenv.mkDerivation rec {
pname = "ccze";
version = "0.2.1-2";
2015-01-24 19:17:53 +00:00
2021-09-19 16:56:10 +00:00
src = fetchFromGitHub {
owner = "madhouse";
repo = "ccze";
rev = "ccze-${version}";
hash = "sha256-LVwmbrq78mZcAEuAqjXTqLE5we83H9mcMPtxQx2Tn/c=";
2015-01-24 19:17:53 +00:00
};
nativeBuildInputs = [ autoconf ];
2015-01-24 19:17:53 +00:00
buildInputs = [ ncurses pcre ];
preConfigure = ''
autoheader
autoconf
'';
2015-01-24 19:17:53 +00:00
meta = with lib; {
2015-01-24 19:17:53 +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;
};
}