2012-02-15 16:07:45 +00:00
|
|
|
{ stdenv, fetchurl }:
|
|
|
|
|
|
|
|
# TODO: add support for "make man"
|
|
|
|
|
|
|
|
let
|
|
|
|
name = "cppcheck";
|
2014-03-05 14:32:15 +00:00
|
|
|
version = "1.64";
|
2012-02-15 16:07:45 +00:00
|
|
|
in
|
|
|
|
stdenv.mkDerivation {
|
|
|
|
name = "${name}-${version}";
|
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "mirror://sourceforge/${name}/${name}-${version}.tar.bz2";
|
2014-03-05 14:32:15 +00:00
|
|
|
sha256 = "0n2hrg99rsp77b3plpip315pyk0x4gh8gljs9z3iwcbcg14mliff";
|
2012-02-15 16:07:45 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
configurePhase = "makeFlags=PREFIX=$out";
|
|
|
|
|
|
|
|
meta = {
|
2013-10-06 10:49:53 +01:00
|
|
|
description = "Check C/C++ code for memory leaks, mismatching allocation-deallocation, buffer overrun and more";
|
2012-02-15 16:07:45 +00:00
|
|
|
homepage = "http://sourceforge.net/apps/mediawiki/cppcheck/";
|
|
|
|
license = "GPL";
|
|
|
|
platforms = stdenv.lib.platforms.unix;
|
|
|
|
maintainers = [ stdenv.lib.maintainers.simons ];
|
|
|
|
};
|
|
|
|
}
|