7 stdenv.mkDerivation rec {
12 url = "mirror://sourceforge/cccc/${version}/cccc-${version}.tar.gz";
13 sha256 = "1gsdzzisrk95kajs3gfxks3bjvfd9g680fin6a9pjrism2lyrcr7";
16 hardeningDisable = [ "format" ];
18 patches = [ ./cccc.patch ];
21 substituteInPlace install/install.mak --replace /usr/local/bin $out/bin
22 substituteInPlace install/install.mak --replace MKDIR=mkdir "MKDIR=mkdir -p"
30 description = "C and C++ Code Counter";
33 CCCC is a tool which analyzes C++ and Java files and generates a report
34 on various metrics of the code. Metrics supported include lines of code, McCabe's
35 complexity and metrics proposed by Chidamber&Kemerer and Henry&Kafura.
37 homepage = "https://cccc.sourceforge.net/";
38 license = lib.licenses.gpl2;
39 platforms = lib.platforms.unix;
40 maintainers = [ lib.maintainers.linquize ];