1{
2 lib,
3 stdenv,
4 fetchFromGitLab,
5 autoconf,
6 ncurses,
7 pcre2,
8 quilt,
9}:
10
11stdenv.mkDerivation (finalAttrs: {
12 pname = "ccze";
13 version = "0.2.1-8";
14
15 src = fetchFromGitLab {
16 domain = "salsa.debian.org";
17 owner = "debian";
18 repo = "ccze";
19 rev = "debian/${finalAttrs.version}";
20 hash = "sha256-sESbs+HTDRX9w7c+LYnzQoemPIxAtqk27IVSTtiAGEk=";
21 };
22
23 postPatch = ''
24 QUILT_PATCHES=debian/patches quilt push -a
25 '';
26
27 nativeBuildInputs = [
28 autoconf
29 quilt
30 ];
31
32 buildInputs = [
33 ncurses
34 pcre2
35 ];
36
37 preConfigure = ''
38 autoheader
39 autoconf
40 '';
41
42 # provide correct pcre2-config for cross
43 env.PCRE_CONFIG = lib.getExe' (lib.getDev pcre2) "pcre2-config";
44
45 meta = with lib; {
46 mainProgram = "ccze";
47 description = "Fast, modular log colorizer";
48 homepage = "https://salsa.debian.org/debian/ccze";
49 changelog = "https://salsa.debian.org/debian/ccze/-/raw/master/debian/changelog?ref_type=heads";
50 longDescription = ''
51 Fast log colorizer written in C, intended to be a drop-in replacement for the Perl colorize tool.
52 Includes plugins for a variety of log formats (Apache, Postfix, Procmail, etc.).
53 '';
54 license = licenses.gpl2Plus;
55 maintainers = with maintainers; [
56 malyn
57 philiptaron
58 ];
59 platforms = platforms.linux;
60 };
61})