From b3504c7bf5ac1694531f964eaa41931f7c1dc817 Mon Sep 17 00:00:00 2001 From: "Jason \"Don\" O'Conal" Date: Thu, 28 Nov 2013 23:52:49 +0000 Subject: [PATCH] complexity: fix build --- pkgs/development/tools/misc/complexity/default.nix | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/pkgs/development/tools/misc/complexity/default.nix b/pkgs/development/tools/misc/complexity/default.nix index 076a68b81374..cfdc35f1b346 100644 --- a/pkgs/development/tools/misc/complexity/default.nix +++ b/pkgs/development/tools/misc/complexity/default.nix @@ -19,6 +19,13 @@ stdenv.mkDerivation rec { 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 = "GNU Complexity, C code complexity measurement tool";