2015-05-02 23:22:23 +01:00
|
|
|
{ stdenv, fetchurl, libxslt, docbook_xsl, docbook_xml_dtd_45 }:
|
2012-02-15 16:07:45 +00:00
|
|
|
|
|
|
|
let
|
|
|
|
name = "cppcheck";
|
2015-05-02 23:22:23 +01:00
|
|
|
version = "1.69";
|
2012-02-15 16:07:45 +00:00
|
|
|
in
|
|
|
|
stdenv.mkDerivation {
|
|
|
|
name = "${name}-${version}";
|
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "mirror://sourceforge/${name}/${name}-${version}.tar.bz2";
|
2015-05-02 23:22:23 +01:00
|
|
|
sha256 = "0bjkqy4c6ph6nzparcnbxrdn52i3hiind4jc99v2kvsq281wimab";
|
2012-02-15 16:07:45 +00:00
|
|
|
};
|
|
|
|
|
2015-05-02 23:22:23 +01:00
|
|
|
buildInputs = [ libxslt docbook_xsl docbook_xml_dtd_45 ];
|
2014-05-08 13:27:48 +01:00
|
|
|
|
2015-05-02 23:22:23 +01: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
|
|
|
|
|
|
|
meta = {
|
2015-05-02 23:22:23 +01: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/;
|
|
|
|
license = stdenv.lib.licenses.gpl3Plus;
|
2012-02-15 16:07:45 +00:00
|
|
|
platforms = stdenv.lib.platforms.unix;
|
|
|
|
maintainers = [ stdenv.lib.maintainers.simons ];
|
|
|
|
};
|
|
|
|
}
|