31 lines
754 B
Nix
31 lines
754 B
Nix
{ stdenv, fetchurl }:
|
|
|
|
# TODO: add support for "make man"
|
|
|
|
let
|
|
name = "cppcheck";
|
|
version = "1.67";
|
|
in
|
|
stdenv.mkDerivation {
|
|
name = "${name}-${version}";
|
|
|
|
src = fetchurl {
|
|
url = "mirror://sourceforge/${name}/${name}-${version}.tar.bz2";
|
|
sha256 = "1f9azv714mk37mjij29nfyd3hizsnj6wry1mmv7kxj0i1k7w0532";
|
|
};
|
|
|
|
configurePhase = ''
|
|
makeFlags="PREFIX=$out CFGDIR=$out/cfg"
|
|
'';
|
|
|
|
postInstall = "cp -r cfg $out/cfg";
|
|
|
|
meta = {
|
|
description = "Check C/C++ code for memory leaks, mismatching allocation-deallocation, buffer overrun and more";
|
|
homepage = "http://sourceforge.net/apps/mediawiki/cppcheck/";
|
|
license = "GPL";
|
|
platforms = stdenv.lib.platforms.unix;
|
|
maintainers = [ stdenv.lib.maintainers.simons ];
|
|
};
|
|
}
|