1{ fetchurl, stdenv, autogen }:
2
3stdenv.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";
18
19 longDescription =
20 '' GNU Complexity is a tool designed for analyzing the complexity of C
21 program functions. It is very similar to the McCabe scoring, but
22 addresses several issues not considered in that scoring scheme.
23 '';
24
25 license = stdenv.lib.licenses.gpl3Plus;
26
27 homepage = http://www.gnu.org/software/complexity/;
28
29 platforms = stdenv.lib.platforms.gnu;
30 maintainers = [ ];
31 };
32}