nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at python-updates 68 lines 1.4 kB view raw
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 outputs = [ 46 "out" 47 "man" 48 "dev" 49 "lib" 50 ]; 51 52 meta = { 53 mainProgram = "ccze"; 54 description = "Fast, modular log colorizer"; 55 homepage = "https://salsa.debian.org/debian/ccze"; 56 changelog = "https://salsa.debian.org/debian/ccze/-/raw/master/debian/changelog?ref_type=heads"; 57 longDescription = '' 58 Fast log colorizer written in C, intended to be a drop-in replacement for the Perl colorize tool. 59 Includes plugins for a variety of log formats (Apache, Postfix, Procmail, etc.). 60 ''; 61 license = lib.licenses.gpl2Plus; 62 maintainers = with lib.maintainers; [ 63 malyn 64 philiptaron 65 ]; 66 platforms = lib.platforms.linux; 67 }; 68})