2021-01-23 12:26:19 +00:00
|
|
|
{ lib, stdenv, fetchurl, perl }:
|
2015-01-11 14:21:25 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
version = "6.0.1";
|
2019-08-15 13:41:18 +01:00
|
|
|
pname = "coan";
|
2015-01-11 14:21:25 +00:00
|
|
|
|
|
|
|
src = fetchurl {
|
2019-08-15 13:41:18 +01:00
|
|
|
url = "mirror://sourceforge/project/coan2/v${version}/${pname}-${version}.tar.gz";
|
2015-01-11 14:21:25 +00:00
|
|
|
sha256 = "1d041j0nd1hc0562lbj269dydjm4rbzagdgzdnmwdxr98544yw44";
|
|
|
|
};
|
|
|
|
|
2015-06-17 18:36:06 +01:00
|
|
|
nativeBuildInputs = [ perl ];
|
2015-01-11 14:21:25 +00:00
|
|
|
|
|
|
|
enableParallelBuilding = true;
|
|
|
|
|
2015-01-12 20:38:31 +00:00
|
|
|
postInstall = ''
|
|
|
|
mv -v $out/share/man/man1/coan.1.{1,gz}
|
|
|
|
'';
|
|
|
|
|
2021-01-23 12:26:19 +00:00
|
|
|
meta = with lib; {
|
2015-01-11 14:21:25 +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.
|
|
|
|
'';
|
2020-04-01 02:11:51 +01:00
|
|
|
homepage = "http://coan2.sourceforge.net/";
|
2015-05-28 18:20:29 +01:00
|
|
|
license = licenses.bsd3;
|
2015-11-17 20:29:29 +00:00
|
|
|
platforms = platforms.linux;
|
2015-01-11 14:21:25 +00:00
|
|
|
};
|
|
|
|
}
|