2021-02-05 17:12:51 +00:00
|
|
|
{ lib, stdenv, fetchurl, perl }:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
version = "6.0.1";
|
|
|
|
pname = "coan";
|
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "mirror://sourceforge/project/coan2/v${version}/${pname}-${version}.tar.gz";
|
|
|
|
sha256 = "1d041j0nd1hc0562lbj269dydjm4rbzagdgzdnmwdxr98544yw44";
|
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [ perl ];
|
|
|
|
|
2022-04-27 09:35:20 +00:00
|
|
|
NIX_CFLAGS_COMPILE = [
|
|
|
|
"-std=c++11"
|
|
|
|
];
|
|
|
|
|
2020-04-24 23:36:52 +00:00
|
|
|
enableParallelBuilding = true;
|
|
|
|
|
|
|
|
postInstall = ''
|
|
|
|
mv -v $out/share/man/man1/coan.1.{1,gz}
|
|
|
|
'';
|
|
|
|
|
2021-02-05 17:12:51 +00:00
|
|
|
meta = with lib; {
|
2020-04-24 23:36:52 +00:00
|
|
|
description = "The C preprocessor chainsaw";
|
|
|
|
longDescription = ''
|
|
|
|
A software engineering tool for analysing preprocessor-based
|
|
|
|
configurations of C or C++ source code. Its principal use is to simplify
|
|
|
|
a body of source code by eliminating any parts that are redundant with
|
|
|
|
respect to a specified configuration. Dead code removal is an
|
|
|
|
application of this sort.
|
|
|
|
'';
|
|
|
|
homepage = "http://coan2.sourceforge.net/";
|
|
|
|
license = licenses.bsd3;
|
2021-03-15 08:37:03 +00:00
|
|
|
platforms = platforms.all;
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
}
|