Merge pull request #10432 from lancelotsix/update_pkgs.complexity
pkgs.complexity: 0.4 -> 1.3
This commit is contained in:
commit
156f164677
|
@ -1,31 +1,18 @@
|
||||||
{ fetchurl, stdenv, autogen, texinfo }:
|
{ fetchurl, stdenv, autogen }:
|
||||||
|
|
||||||
stdenv.mkDerivation rec {
|
stdenv.mkDerivation rec {
|
||||||
# FIXME: Currently fails to build.
|
name = "complexity-${version}";
|
||||||
name = "complexity-0.4";
|
version = "1.3";
|
||||||
|
|
||||||
src = fetchurl {
|
src = fetchurl {
|
||||||
url = "mirror://gnu/complexity/${name}.tar.gz";
|
url = "mirror://gnu/complexity/${name}.tar.gz";
|
||||||
sha256 = "0dmk2pm7vi95482hnbbp597640bsjw5gg57j8cpy87855cl69yr8";
|
sha256 = "19bc64sxpqd5rqylqaa7dijz2x7qp2b0dg3ah3fb3qbcvd8b4wgy";
|
||||||
};
|
};
|
||||||
|
|
||||||
buildInputs =
|
buildInputs = [ autogen ];
|
||||||
[ autogen
|
|
||||||
texinfo # XXX: shouldn't be needed, per GCS
|
|
||||||
];
|
|
||||||
|
|
||||||
# Hack to work around build defect.
|
|
||||||
makeFlags = "MAKEINFOFLAGS=--no-validate";
|
|
||||||
|
|
||||||
doCheck = true;
|
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 = {
|
meta = {
|
||||||
description = "C code complexity measurement tool";
|
description = "C code complexity measurement tool";
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue