mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-01-11 07:23:40 +00:00
710751d119
Debian appears to be the only maintained source for this package. Added a changelog and a mainProgram.
59 lines
1.2 KiB
Nix
59 lines
1.2 KiB
Nix
{
|
|
lib,
|
|
stdenv,
|
|
fetchFromGitLab,
|
|
autoconf,
|
|
ncurses,
|
|
pcre2,
|
|
quilt,
|
|
}:
|
|
|
|
stdenv.mkDerivation (finalAttrs: {
|
|
pname = "ccze";
|
|
version = "0.2.1-8";
|
|
|
|
src = fetchFromGitLab {
|
|
domain = "salsa.debian.org";
|
|
owner = "debian";
|
|
repo = "ccze";
|
|
rev = "debian/${finalAttrs.version}";
|
|
hash = "sha256-sESbs+HTDRX9w7c+LYnzQoemPIxAtqk27IVSTtiAGEk=";
|
|
};
|
|
|
|
postPatch = ''
|
|
QUILT_PATCHES=debian/patches quilt push -a
|
|
'';
|
|
|
|
nativeBuildInputs = [
|
|
autoconf
|
|
quilt
|
|
];
|
|
|
|
buildInputs = [
|
|
ncurses
|
|
pcre2
|
|
];
|
|
|
|
preConfigure = ''
|
|
autoheader
|
|
autoconf
|
|
'';
|
|
|
|
meta = with lib; {
|
|
mainProgram = "ccze";
|
|
description = "Fast, modular log colorizer";
|
|
homepage = "https://salsa.debian.org/debian/ccze";
|
|
changelog = "https://salsa.debian.org/debian/ccze/-/raw/master/debian/changelog?ref_type=heads";
|
|
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.gpl2Plus;
|
|
maintainers = with maintainers; [
|
|
malyn
|
|
philiptaron
|
|
];
|
|
platforms = platforms.linux;
|
|
};
|
|
})
|