From f4c250f76ffa151bcc6cf3ac37d368f85ae14f16 Mon Sep 17 00:00:00 2001 From: Lancelot SIX Date: Sat, 17 Oct 2015 10:22:12 +0200 Subject: [PATCH] pkgs.complexity: 0.4 -> 1.3 See https://lists.gnu.org/archive/html/info-gnu/2015-10/msg00004.html for announcement --- .../tools/misc/complexity/default.nix | 23 ++++--------------- 1 file changed, 5 insertions(+), 18 deletions(-) diff --git a/pkgs/development/tools/misc/complexity/default.nix b/pkgs/development/tools/misc/complexity/default.nix index 4508fd641195..35c332f28773 100644 --- a/pkgs/development/tools/misc/complexity/default.nix +++ b/pkgs/development/tools/misc/complexity/default.nix @@ -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";