depot/third_party/nixpkgs/pkgs/tools/misc/ccze/default.nix
Default email 6064764516 Project import generated by Copybara.
GitOrigin-RevId: 2cf9db0e3d45b9d00f16f2836cb1297bcadc475e
2021-10-14 08:43:12 +08:00

34 lines
842 B
Nix

{ lib, stdenv, fetchFromGitHub, autoconf, ncurses, pcre }:
stdenv.mkDerivation rec {
pname = "ccze";
version = "0.2.1-2";
src = fetchFromGitHub {
owner = "madhouse";
repo = "ccze";
rev = "ccze-${version}";
hash = "sha256-LVwmbrq78mZcAEuAqjXTqLE5we83H9mcMPtxQx2Tn/c=";
};
nativeBuildInputs = [ autoconf ];
buildInputs = [ ncurses pcre ];
preConfigure = ''
autoheader
autoconf
'';
meta = with lib; {
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;
};
}