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