2012-02-15 17:07:45 +01:00
|
|
|
{ stdenv, fetchurl }:
|
|
|
|
|
|
|
|
# TODO: add support for "make man"
|
|
|
|
|
|
|
|
let
|
|
|
|
name = "cppcheck";
|
2014-01-13 16:32:00 +01:00
|
|
|
version = "1.63";
|
2012-02-15 17:07:45 +01:00
|
|
|
in
|
|
|
|
stdenv.mkDerivation {
|
|
|
|
name = "${name}-${version}";
|
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "mirror://sourceforge/${name}/${name}-${version}.tar.bz2";
|
2014-01-13 16:32:00 +01:00
|
|
|
sha256 = "0r10z44qydqxxxlxiggl2nzksd3gkb7bp784dfmpnnr1jd2zqjwj";
|
2012-02-15 17:07:45 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
configurePhase = "makeFlags=PREFIX=$out";
|
|
|
|
|
|
|
|
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 ];
|
|
|
|
};
|
|
|
|
}
|