Files
nixpkgs/pkgs/by-name/cc/ccze/package.nix
Dark Steveneq 646b892680
Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
push sheeet
2025-10-09 14:15:47 +02:00

62 lines
1.3 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
'';
# provide correct pcre2-config for cross
env.PCRE_CONFIG = lib.getExe' (lib.getDev pcre2) "pcre2-config";
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;
};
})