Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
51 lines
1.2 KiB
Nix
51 lines
1.2 KiB
Nix
{
|
|
lib,
|
|
stdenv,
|
|
fetchurl,
|
|
autoreconfHook,
|
|
perl,
|
|
}:
|
|
|
|
stdenv.mkDerivation rec {
|
|
version = "6.0.1";
|
|
pname = "coan";
|
|
|
|
src = fetchurl {
|
|
url = "mirror://sourceforge/project/coan2/v${version}/${pname}-${version}.tar.gz";
|
|
sha256 = "1d041j0nd1hc0562lbj269dydjm4rbzagdgzdnmwdxr98544yw44";
|
|
};
|
|
|
|
patches = [
|
|
# fix compile error in configure.ac
|
|
./fix-big-endian-config-check.diff
|
|
];
|
|
|
|
nativeBuildInputs = [
|
|
autoreconfHook
|
|
perl
|
|
];
|
|
|
|
configureFlags = [ "CXXFLAGS=-std=c++11" ];
|
|
|
|
enableParallelBuilding = true;
|
|
|
|
postInstall = ''
|
|
mv -v $out/share/man/man1/coan.1.{1,gz}
|
|
'';
|
|
|
|
meta = with lib; {
|
|
description = "C preprocessor chainsaw";
|
|
mainProgram = "coan";
|
|
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 = "https://coan2.sourceforge.net/";
|
|
license = licenses.bsd3;
|
|
platforms = platforms.all;
|
|
};
|
|
}
|