7 stdenv.mkDerivation rec {
12 url = "http://http.debian.net/debian/pool/main/p/pmccabe/pmccabe_${version}.tar.gz";
13 sha256 = "0a3h1b9fb87c82d5fbql5lc4gp338pa5s9i66dhw7zk8jdygx474";
17 ./getopt_on_darwin.patch
23 -e "s,^DESTDIR =.*$,DESTDIR = $out," \
24 -e "s,^INSTALL = install.*$,INSTALL = install," \
25 -e "s,^all:.*$,all: \$(PROGS),"
28 checkPhase = "make test";
33 description = "McCabe-style function complexity and line counting for C and C++";
34 homepage = "https://people.debian.org/~bame/pmccabe/";
35 license = licenses.gpl2Plus;
38 pmccabe calculates McCabe-style cyclomatic complexity for C and
39 C++ source code. Per-function complexity may be used for
40 spotting likely trouble spots and for estimating testing
43 pmccabe also includes a non-commented line counter, decomment which
44 only removes comments from source code; codechanges, a program to
45 calculate the amount of change which has occurred between two source
46 trees or files; and vifn, to invoke vi given a function name rather
49 maintainers = with maintainers; [ peterhoeg ];
50 platforms = platforms.unix;