diff options
author | Benjamin Hipple <bhipple@protonmail.com> | 2018-10-04 01:17:18 +0000 |
---|---|---|
committer | Benjamin Hipple <bhipple@protonmail.com> | 2018-10-12 18:51:43 +0000 |
commit | 964214b10700fab42bbeac6092d20bb7ad8d4e35 (patch) | |
tree | e6e068508efb00dabef6c1ea4dc5f3a04b8d4d66 /pkgs/development/tools/analysis | |
parent | e4f8d5c254d8cb94fa4b2da1ae785e9f3fdf7976 (diff) | |
download | nixlib-964214b10700fab42bbeac6092d20bb7ad8d4e35.tar nixlib-964214b10700fab42bbeac6092d20bb7ad8d4e35.tar.gz nixlib-964214b10700fab42bbeac6092d20bb7ad8d4e35.tar.bz2 nixlib-964214b10700fab42bbeac6092d20bb7ad8d4e35.tar.lz nixlib-964214b10700fab42bbeac6092d20bb7ad8d4e35.tar.xz nixlib-964214b10700fab42bbeac6092d20bb7ad8d4e35.tar.zst nixlib-964214b10700fab42bbeac6092d20bb7ad8d4e35.zip |
cpplint: init at 1.3.0
Static analyzer for C++ code. Licensed under a very permissive, generic Google license (BSD3 wording).
Diffstat (limited to 'pkgs/development/tools/analysis')
-rw-r--r-- | pkgs/development/tools/analysis/cpplint/default.nix | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/pkgs/development/tools/analysis/cpplint/default.nix b/pkgs/development/tools/analysis/cpplint/default.nix new file mode 100644 index 000000000000..10ed99e3ffe6 --- /dev/null +++ b/pkgs/development/tools/analysis/cpplint/default.nix @@ -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 ]; + }; +} |