cppcheck: 1.68 -> 1.69
Also update meta and install man page.
This commit is contained in:
parent
2d8cfe76a9
commit
127050d851
@ -1,29 +1,35 @@
|
|||||||
{ stdenv, fetchurl }:
|
{ stdenv, fetchurl, libxslt, docbook_xsl, docbook_xml_dtd_45 }:
|
||||||
|
|
||||||
# TODO: add support for "make man"
|
|
||||||
|
|
||||||
let
|
let
|
||||||
name = "cppcheck";
|
name = "cppcheck";
|
||||||
version = "1.68";
|
version = "1.69";
|
||||||
in
|
in
|
||||||
stdenv.mkDerivation {
|
stdenv.mkDerivation {
|
||||||
name = "${name}-${version}";
|
name = "${name}-${version}";
|
||||||
|
|
||||||
src = fetchurl {
|
src = fetchurl {
|
||||||
url = "mirror://sourceforge/${name}/${name}-${version}.tar.bz2";
|
url = "mirror://sourceforge/${name}/${name}-${version}.tar.bz2";
|
||||||
sha256 = "1ca9fdhrrxfyzd6kn67gxbfszp70191cf3ndasrh5jh55ghybmmd";
|
sha256 = "0bjkqy4c6ph6nzparcnbxrdn52i3hiind4jc99v2kvsq281wimab";
|
||||||
};
|
};
|
||||||
|
|
||||||
configurePhase = ''
|
buildInputs = [ libxslt docbook_xsl docbook_xml_dtd_45 ];
|
||||||
makeFlags="PREFIX=$out CFGDIR=$out/cfg"
|
|
||||||
|
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
|
||||||
'';
|
'';
|
||||||
|
|
||||||
postInstall = "cp -r cfg $out/cfg";
|
|
||||||
|
|
||||||
meta = {
|
meta = {
|
||||||
description = "Check C/C++ code for memory leaks, mismatching allocation-deallocation, buffer overrun and more";
|
description = "A static analysis tool for C/C++ code";
|
||||||
homepage = "http://sourceforge.net/apps/mediawiki/cppcheck/";
|
longDescription = ''
|
||||||
license = "GPL";
|
Check C/C++ code for memory leaks, mismatching
|
||||||
|
allocation-deallocation, buffer overruns and more.
|
||||||
|
'';
|
||||||
|
homepage = http://cppcheck.sourceforge.net/;
|
||||||
|
license = stdenv.lib.licenses.gpl3Plus;
|
||||||
platforms = stdenv.lib.platforms.unix;
|
platforms = stdenv.lib.platforms.unix;
|
||||||
maintainers = [ stdenv.lib.maintainers.simons ];
|
maintainers = [ stdenv.lib.maintainers.simons ];
|
||||||
};
|
};
|
||||||
|
Loading…
Reference in New Issue
Block a user