Skip to content

Commit 710751d

Browse files
committed
ccze: 0.2.1-2 -> 0.2.1-8
Debian appears to be the only maintained source for this package. Added a changelog and a mainProgram.
1 parent 7d8f4d6 commit 710751d

File tree

1 file changed

+29
-15
lines changed

1 file changed

+29
-15
lines changed

pkgs/by-name/cc/ccze/package.nix

Lines changed: 29 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,28 +1,37 @@
11
{
22
lib,
33
stdenv,
4-
fetchFromGitHub,
4+
fetchFromGitLab,
55
autoconf,
66
ncurses,
7-
pcre,
7+
pcre2,
8+
quilt,
89
}:
910

10-
stdenv.mkDerivation rec {
11+
stdenv.mkDerivation (finalAttrs: {
1112
pname = "ccze";
12-
version = "0.2.1-2";
13+
version = "0.2.1-8";
1314

14-
src = fetchFromGitHub {
15-
owner = "madhouse";
15+
src = fetchFromGitLab {
16+
domain = "salsa.debian.org";
17+
owner = "debian";
1618
repo = "ccze";
17-
rev = "ccze-${version}";
18-
hash = "sha256-LVwmbrq78mZcAEuAqjXTqLE5we83H9mcMPtxQx2Tn/c=";
19+
rev = "debian/${finalAttrs.version}";
20+
hash = "sha256-sESbs+HTDRX9w7c+LYnzQoemPIxAtqk27IVSTtiAGEk=";
1921
};
2022

21-
nativeBuildInputs = [ autoconf ];
23+
postPatch = ''
24+
QUILT_PATCHES=debian/patches quilt push -a
25+
'';
26+
27+
nativeBuildInputs = [
28+
autoconf
29+
quilt
30+
];
2231

2332
buildInputs = [
2433
ncurses
25-
pcre
34+
pcre2
2635
];
2736

2837
preConfigure = ''
@@ -31,14 +40,19 @@ stdenv.mkDerivation rec {
3140
'';
3241

3342
meta = with lib; {
43+
mainProgram = "ccze";
3444
description = "Fast, modular log colorizer";
45+
homepage = "https://salsa.debian.org/debian/ccze";
46+
changelog = "https://salsa.debian.org/debian/ccze/-/raw/master/debian/changelog?ref_type=heads";
3547
longDescription = ''
36-
Fast log colorizer written in C, intended to be a drop-in replacement
37-
for the Perl colorize tool. Includes plugins for a variety of log
38-
formats (Apache, Postfix, Procmail, etc.).
48+
Fast log colorizer written in C, intended to be a drop-in replacement for the Perl colorize tool.
49+
Includes plugins for a variety of log formats (Apache, Postfix, Procmail, etc.).
3950
'';
4051
license = licenses.gpl2Plus;
41-
maintainers = with maintainers; [ malyn ];
52+
maintainers = with maintainers; [
53+
malyn
54+
philiptaron
55+
];
4256
platforms = platforms.linux;
4357
};
44-
}
58+
})

0 commit comments

Comments
 (0)