cpplint: init at 1.3.0
Static analyzer for C++ code. Licensed under a very permissive, generic Google license (BSD3 wording).
This commit is contained in:
parent
e4f8d5c254
commit
964214b107
|
@ -0,0 +1,29 @@
|
||||||
|
{ lib, pythonPackages, fetchFromGitHub }:
|
||||||
|
|
||||||
|
pythonPackages.buildPythonApplication rec {
|
||||||
|
pname = "cpplint";
|
||||||
|
version = "1.3.0";
|
||||||
|
|
||||||
|
# Fetch from github instead of pypi, since the test cases are not in the pypi archive
|
||||||
|
src = fetchFromGitHub {
|
||||||
|
owner = pname;
|
||||||
|
repo = pname;
|
||||||
|
rev = version;
|
||||||
|
sha256 = "107v7bp35kxbv9v7wl79h7115z1m4b48rhasp0cnivql1grd277i";
|
||||||
|
};
|
||||||
|
|
||||||
|
postPatch = ''
|
||||||
|
patchShebangs cpplint_unittest.py
|
||||||
|
'';
|
||||||
|
|
||||||
|
checkPhase = ''
|
||||||
|
./cpplint_unittest.py
|
||||||
|
'';
|
||||||
|
|
||||||
|
meta = with lib; {
|
||||||
|
homepage = https://github.com/cpplint/cpplint;
|
||||||
|
description = "Static code checker for C++";
|
||||||
|
maintainers = [ maintainers.bhipple ];
|
||||||
|
license = [ licenses.bsd3 ];
|
||||||
|
};
|
||||||
|
}
|
|
@ -8264,6 +8264,8 @@ with pkgs;
|
||||||
|
|
||||||
cppcheck = callPackage ../development/tools/analysis/cppcheck { };
|
cppcheck = callPackage ../development/tools/analysis/cppcheck { };
|
||||||
|
|
||||||
|
cpplint = callPackage ../development/tools/analysis/cpplint { };
|
||||||
|
|
||||||
cquery = callPackage ../development/tools/misc/cquery {
|
cquery = callPackage ../development/tools/misc/cquery {
|
||||||
llvmPackages = llvmPackages_6;
|
llvmPackages = llvmPackages_6;
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in New Issue