git.iko.soy/typeable/nixpkgs
on master help sign in
pkgs.complexity: 0.4 -> 1.3

See https://lists.gnu.org/archive/html/info-gnu/2015-10/msg00004.html for announcement

commitf4c250f76ffa151bcc6cf3ac37d368f85ae14f16 authorLancelot SIX <lancelot@lancelotsix.com> dateSat 17 Oct 2015, 10:22 (11 years ago) parentde49789
1 file changed+5−18
pkgs/development/tools/misc/complexity/default.nix+5−18
pkgs/development/tools/misc/complexity/default.nix+5−18
@@ -1,31 +1,18 @@
1−{ fetchurl, stdenv, autogen, texinfo }:
1+{ fetchurl, stdenv, autogen }:
22
33stdenv.mkDerivation rec {
4− # FIXME: Currently fails to build.
5− name = "complexity-0.4";
4+ name = "complexity-${version}";
5+ version = "1.3";
66
77 src = fetchurl {
88 url = "mirror://gnu/complexity/${name}.tar.gz";
9− sha256 = "0dmk2pm7vi95482hnbbp597640bsjw5gg57j8cpy87855cl69yr8";
9+ sha256 = "19bc64sxpqd5rqylqaa7dijz2x7qp2b0dg3ah3fb3qbcvd8b4wgy";
1010 };
1111
12− buildInputs =
13− [ autogen
14− texinfo # XXX: shouldn't be needed, per GCS
15− ];
16−
17− # Hack to work around build defect.
18− makeFlags = "MAKEINFOFLAGS=--no-validate";
12+ buildInputs = [ autogen ];
1913
2014 doCheck = true;
2115
22− preBuild = ''
23− sed -i -e '/gets is a security/d' lib/stdio.in.h
24− sed -i '42 i\
25− #undef false\
26− #undef true' src/complexity.h
27− '';
28−
2916 meta = {
3017 description = "C code complexity measurement tool";
3118