2015-05-02 22:22:23 +00:00
|
|
|
{ stdenv, fetchurl, libxslt, docbook_xsl, docbook_xml_dtd_45 }:
|
2012-02-15 16:07:45 +00:00
|
|
|
|
|
|
|
let
|
2016-03-05 17:33:53 +00:00
|
|
|
pname = "cppcheck";
|
|
|
|
version = "1.72";
|
2012-02-15 16:07:45 +00:00
|
|
|
in
|
2016-03-05 17:33:53 +00:00
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
name = "${pname}-${version}";
|
2012-02-15 16:07:45 +00:00
|
|
|
|
|
|
|
src = fetchurl {
|
2016-03-05 17:33:53 +00:00
|
|
|
url = "mirror://sourceforge/${pname}/${name}.tar.bz2";
|
|
|
|
sha256 = "085lm8v7biixy6rykq836gfy91jcccpz9qpk8i9x339dzy2b2q4l";
|
2012-02-15 16:07:45 +00:00
|
|
|
};
|
|
|
|
|
2016-03-07 18:35:38 +00:00
|
|
|
nativeBuildInputs = [ libxslt docbook_xsl docbook_xml_dtd_45 ];
|
2014-05-08 12:27:48 +00:00
|
|
|
|
2015-05-02 22:22:23 +00:00
|
|
|
makeFlags = ''PREFIX=$(out) CFGDIR=$(out)/cfg'';
|
|
|
|
|
|
|
|
postInstall = ''
|
|
|
|
make DB2MAN=${docbook_xsl}/xml/xsl/docbook/manpages/docbook.xsl man
|
|
|
|
mkdir -p $out/share/man/man1
|
|
|
|
cp cppcheck.1 $out/share/man/man1/cppcheck.1
|
|
|
|
'';
|
2012-02-15 16:07:45 +00:00
|
|
|
|
2016-03-05 17:33:53 +00:00
|
|
|
meta = with stdenv.lib; {
|
2015-05-02 22:22:23 +00:00
|
|
|
description = "A static analysis tool for C/C++ code";
|
|
|
|
longDescription = ''
|
|
|
|
Check C/C++ code for memory leaks, mismatching
|
|
|
|
allocation-deallocation, buffer overruns and more.
|
|
|
|
'';
|
|
|
|
homepage = http://cppcheck.sourceforge.net/;
|
2016-03-05 17:33:53 +00:00
|
|
|
license = licenses.gpl3Plus;
|
|
|
|
platforms = platforms.unix;
|
|
|
|
maintainers = with maintainers; [ simons joachifm ];
|
2012-02-15 16:07:45 +00:00
|
|
|
};
|
|
|
|
}
|