1 { lib, stdenv, fetchurl, perl }:
3 stdenv.mkDerivation rec {
8 url = "mirror://sourceforge/project/coan2/v${version}/${pname}-${version}.tar.gz";
9 sha256 = "1d041j0nd1hc0562lbj269dydjm4rbzagdgzdnmwdxr98544yw44";
12 nativeBuildInputs = [ perl ];
14 CXXFLAGS = "-std=c++11";
16 enableParallelBuilding = true;
19 mv -v $out/share/man/man1/coan.1.{1,gz}
23 description = "The C preprocessor chainsaw";
25 A software engineering tool for analysing preprocessor-based
26 configurations of C or C++ source code. Its principal use is to simplify
27 a body of source code by eliminating any parts that are redundant with
28 respect to a specified configuration. Dead code removal is an
29 application of this sort.
31 homepage = "http://coan2.sourceforge.net/";
32 license = licenses.bsd3;
33 platforms = platforms.all;