1 { lib, stdenv, fetchurl }:
3 stdenv.mkDerivation rec {
8 url = "mirror://sourceforge/cccc/${version}/cccc-${version}.tar.gz";
9 sha256 = "1gsdzzisrk95kajs3gfxks3bjvfd9g680fin6a9pjrism2lyrcr7";
12 hardeningDisable = [ "format" ];
14 patches = [ ./cccc.patch ];
17 substituteInPlace install/install.mak --replace /usr/local/bin $out/bin
18 substituteInPlace install/install.mak --replace MKDIR=mkdir "MKDIR=mkdir -p"
20 buildFlags = [ "CCC=c++" "LD=c++" ];
23 description = "C and C++ Code Counter";
26 CCCC is a tool which analyzes C++ and Java files and generates a report
27 on various metrics of the code. Metrics supported include lines of code, McCabe's
28 complexity and metrics proposed by Chidamber&Kemerer and Henry&Kafura.
30 homepage = "https://cccc.sourceforge.net/";
31 license = lib.licenses.gpl2;
32 platforms = lib.platforms.unix;
33 maintainers = [ lib.maintainers.linquize ];