Merge pull request #10432 from lancelotsix/update_pkgs.complexity

pkgs.complexity: 0.4 -> 1.3

+5 -18
+5 -18
pkgs/development/tools/misc/complexity/default.nix
··· 1 - { fetchurl, stdenv, autogen, texinfo }: 2 3 stdenv.mkDerivation rec { 4 - # FIXME: Currently fails to build. 5 - name = "complexity-0.4"; 6 7 src = fetchurl { 8 url = "mirror://gnu/complexity/${name}.tar.gz"; 9 - sha256 = "0dmk2pm7vi95482hnbbp597640bsjw5gg57j8cpy87855cl69yr8"; 10 }; 11 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"; 19 20 doCheck = true; 21 - 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 29 meta = { 30 description = "C code complexity measurement tool";
··· 1 + { fetchurl, stdenv, autogen }: 2 3 stdenv.mkDerivation rec { 4 + name = "complexity-${version}"; 5 + version = "1.3"; 6 7 src = fetchurl { 8 url = "mirror://gnu/complexity/${name}.tar.gz"; 9 + sha256 = "19bc64sxpqd5rqylqaa7dijz2x7qp2b0dg3ah3fb3qbcvd8b4wgy"; 10 }; 11 12 + buildInputs = [ autogen ]; 13 14 doCheck = true; 15 16 meta = { 17 description = "C code complexity measurement tool";