about summary refs log tree commit diff
path: root/pkgs/development/tools
diff options
context:
space:
mode:
authorRenaud <c0bw3b@users.noreply.github.com>2018-10-12 21:38:24 +0200
committerGitHub <noreply@github.com>2018-10-12 21:38:24 +0200
commit7a90980194c662e77aebf23955be2ad9d5c6ee27 (patch)
tree823b209d066209a3c60adec30df97cc91f42cc7f /pkgs/development/tools
parentad992cbde10879455a5359ceb17937fc57cf2fc9 (diff)
parent964214b10700fab42bbeac6092d20bb7ad8d4e35 (diff)
downloadnixlib-7a90980194c662e77aebf23955be2ad9d5c6ee27.tar
nixlib-7a90980194c662e77aebf23955be2ad9d5c6ee27.tar.gz
nixlib-7a90980194c662e77aebf23955be2ad9d5c6ee27.tar.bz2
nixlib-7a90980194c662e77aebf23955be2ad9d5c6ee27.tar.lz
nixlib-7a90980194c662e77aebf23955be2ad9d5c6ee27.tar.xz
nixlib-7a90980194c662e77aebf23955be2ad9d5c6ee27.tar.zst
nixlib-7a90980194c662e77aebf23955be2ad9d5c6ee27.zip
Merge pull request #47836 from bhipple/add/cpplint
cpplint: init at 1.3.0
Diffstat (limited to 'pkgs/development/tools')
-rw-r--r--pkgs/development/tools/analysis/cpplint/default.nix29
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 ];
+  };
+}