pkgs.complexity: 0.4 -> 1.3

See https://lists.gnu.org/archive/html/info-gnu/2015-10/msg00004.html
for announcement
This commit is contained in:
Lancelot SIX 2015-10-17 10:22:12 +02:00
parent de497895ae
commit f4c250f76f

View File

@ -1,31 +1,18 @@
{ fetchurl, stdenv, autogen, texinfo }:
{ fetchurl, stdenv, autogen }:
stdenv.mkDerivation rec {
# FIXME: Currently fails to build.
name = "complexity-0.4";
name = "complexity-${version}";
version = "1.3";
src = fetchurl {
url = "mirror://gnu/complexity/${name}.tar.gz";
sha256 = "0dmk2pm7vi95482hnbbp597640bsjw5gg57j8cpy87855cl69yr8";
sha256 = "19bc64sxpqd5rqylqaa7dijz2x7qp2b0dg3ah3fb3qbcvd8b4wgy";
};
buildInputs =
[ autogen
texinfo # XXX: shouldn't be needed, per GCS
];
# Hack to work around build defect.
makeFlags = "MAKEINFOFLAGS=--no-validate";
buildInputs = [ autogen ];
doCheck = true;
preBuild = ''
sed -i -e '/gets is a security/d' lib/stdio.in.h
sed -i '42 i\
#undef false\
#undef true' src/complexity.h
'';
meta = {
description = "C code complexity measurement tool";