2012-02-15 17:07:45 +01:00
|
|
|
{ stdenv, fetchurl }:
|
|
|
|
|
|
|
|
# TODO: add support for "make man"
|
|
|
|
|
|
|
|
let
|
|
|
|
name = "cppcheck";
|
2015-02-05 16:58:21 +01:00
|
|
|
version = "1.68";
|
2012-02-15 17:07:45 +01:00
|
|
|
in
|
|
|
|
stdenv.mkDerivation {
|
|
|
|
name = "${name}-${version}";
|
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "mirror://sourceforge/${name}/${name}-${version}.tar.bz2";
|
2015-02-05 16:58:21 +01:00
|
|
|
sha256 = "1ca9fdhrrxfyzd6kn67gxbfszp70191cf3ndasrh5jh55ghybmmd";
|
2012-02-15 17:07:45 +01:00
|
|
|
};
|
|
|
|
|
2014-05-08 14:27:48 +02:00
|
|
|
configurePhase = ''
|
|
|
|
makeFlags="PREFIX=$out CFGDIR=$out/cfg"
|
|
|
|
'';
|
|
|
|
|
|
|
|
postInstall = "cp -r cfg $out/cfg";
|
2012-02-15 17:07:45 +01:00
|
|
|
|
|
|
|
meta = {
|
2013-10-06 11:49:53 +02:00
|
|
|
description = "Check C/C++ code for memory leaks, mismatching allocation-deallocation, buffer overrun and more";
|
2012-02-15 17:07:45 +01:00
|
|
|
homepage = "http://sourceforge.net/apps/mediawiki/cppcheck/";
|
|
|
|
license = "GPL";
|
|
|
|
platforms = stdenv.lib.platforms.unix;
|
|
|
|
maintainers = [ stdenv.lib.maintainers.simons ];
|
|
|
|
};
|
|
|
|
}
|