2011-06-04 22:46:07 +01:00
|
|
|
{ fetchurl, stdenv, autogen, texinfo }:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
# FIXME: Currently fails to build.
|
|
|
|
name = "complexity-0.4";
|
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "mirror://gnu/complexity/${name}.tar.gz";
|
|
|
|
sha256 = "0dmk2pm7vi95482hnbbp597640bsjw5gg57j8cpy87855cl69yr8";
|
|
|
|
};
|
|
|
|
|
|
|
|
buildInputs =
|
|
|
|
[ autogen
|
|
|
|
texinfo # XXX: shouldn't be needed, per GCS
|
|
|
|
];
|
|
|
|
|
|
|
|
# Hack to work around build defect.
|
|
|
|
makeFlags = "MAKEINFOFLAGS=--no-validate";
|
|
|
|
|
|
|
|
doCheck = true;
|
|
|
|
|
2013-11-28 23:52:49 +00:00
|
|
|
preBuild = ''
|
|
|
|
sed -i -e '/gets is a security/d' lib/stdio.in.h
|
|
|
|
sed -i '42 i\
|
|
|
|
#undef false\
|
|
|
|
#undef true' src/complexity.h
|
|
|
|
'';
|
|
|
|
|
2011-06-04 22:46:07 +01:00
|
|
|
meta = {
|
2014-08-24 15:21:08 +01:00
|
|
|
description = "C code complexity measurement tool";
|
2011-06-04 22:46:07 +01:00
|
|
|
|
|
|
|
longDescription =
|
|
|
|
'' GNU Complexity is a tool designed for analyzing the complexity of C
|
|
|
|
program functions. It is very similar to the McCabe scoring, but
|
|
|
|
addresses several issues not considered in that scoring scheme.
|
|
|
|
'';
|
|
|
|
|
2014-06-19 05:19:00 +01:00
|
|
|
license = stdenv.lib.licenses.gpl3Plus;
|
2011-06-04 22:46:07 +01:00
|
|
|
|
|
|
|
homepage = http://www.gnu.org/software/complexity/;
|
|
|
|
|
|
|
|
platforms = stdenv.lib.platforms.gnu;
|
2015-01-13 21:33:24 +00:00
|
|
|
maintainers = [ ];
|
2011-06-04 22:46:07 +01:00
|
|
|
};
|
|
|
|
}
|