nixpkgs/pkgs/development/tools/analysis/cccc/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

35 lines
1 KiB
Nix
Raw Normal View History

{ lib, stdenv, fetchurl }:
2014-05-09 16:50:36 +02:00
2022-02-01 23:01:51 +01:00
stdenv.mkDerivation rec {
pname = "cccc";
2014-05-09 16:50:36 +02:00
version = "3.1.4";
src = fetchurl {
2022-02-01 23:01:51 +01:00
url = "mirror://sourceforge/cccc/${version}/cccc-${version}.tar.gz";
2014-05-09 16:50:36 +02:00
sha256 = "1gsdzzisrk95kajs3gfxks3bjvfd9g680fin6a9pjrism2lyrcr7";
};
2016-02-09 02:02:56 +01:00
hardeningDisable = [ "format" ];
2016-02-09 02:02:56 +01:00
2014-05-09 16:50:36 +02:00
patches = [ ./cccc.patch ];
2016-02-09 02:02:56 +01:00
2014-05-09 16:50:36 +02: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 05:18:24 +02:00
buildFlags = [ "CCC=c++" "LD=c++" ];
2014-05-09 16:50:36 +02: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.
'';
homepage = "http://cccc.sourceforge.net/";
license = lib.licenses.gpl2;
platforms = lib.platforms.unix;
maintainers = [ lib.maintainers.linquize ];
2014-05-09 16:50:36 +02:00
};
}