2021-01-23 12:26:19 +00:00
|
|
|
{ lib, stdenv, fetchurl }:
|
2014-05-09 15:50:36 +01:00
|
|
|
|
|
|
|
let
|
|
|
|
name = "cccc";
|
|
|
|
version = "3.1.4";
|
|
|
|
in
|
|
|
|
stdenv.mkDerivation {
|
|
|
|
name = "${name}-${version}";
|
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "mirror://sourceforge/${name}/${version}/${name}-${version}.tar.gz";
|
|
|
|
sha256 = "1gsdzzisrk95kajs3gfxks3bjvfd9g680fin6a9pjrism2lyrcr7";
|
|
|
|
};
|
2016-02-09 01:02:56 +00:00
|
|
|
|
2016-02-26 17:38:15 +00:00
|
|
|
hardeningDisable = [ "format" ];
|
2016-02-09 01:02:56 +00:00
|
|
|
|
2014-05-09 15:50:36 +01:00
|
|
|
patches = [ ./cccc.patch ];
|
2016-02-09 01:02:56 +00:00
|
|
|
|
2014-05-09 15:50:36 +01:00
|
|
|
preConfigure = ''
|
|
|
|
substituteInPlace install/install.mak --replace /usr/local/bin $out/bin
|
|
|
|
substituteInPlace install/install.mak --replace MKDIR=mkdir "MKDIR=mkdir -p"
|
|
|
|
'';
|
2016-08-12 04:18:24 +01:00
|
|
|
buildFlags = [ "CCC=c++" "LD=c++" ];
|
2014-05-09 15:50:36 +01:00
|
|
|
|
|
|
|
meta = {
|
|
|
|
description = "C and C++ Code Counter";
|
|
|
|
longDescription = ''
|
|
|
|
CCCC is a tool which analyzes C++ and Java files and generates a report
|
|
|
|
on various metrics of the code. Metrics supported include lines of code, McCabe's
|
|
|
|
complexity and metrics proposed by Chidamber&Kemerer and Henry&Kafura.
|
|
|
|
'';
|
2020-04-01 02:11:51 +01:00
|
|
|
homepage = "http://cccc.sourceforge.net/";
|
2021-01-23 12:26:19 +00:00
|
|
|
license = lib.licenses.gpl2;
|
|
|
|
platforms = lib.platforms.unix;
|
|
|
|
maintainers = [ lib.maintainers.linquize ];
|
2014-05-09 15:50:36 +01:00
|
|
|
};
|
|
|
|
}
|