summary refs log tree commit diff
path: root/pkgs/development/tools/cppclean/default.nix
blob: 96fe07a7799add7c7502262c657d56d378471cc4 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
{ stdenv, lib, fetchFromGitHub, python3Packages }:

with python3Packages;

buildPythonApplication rec {
  name = "cppclean-unstable-${version}";
  version = "2018-05-12";

  src = fetchFromGitHub {
    owner  = "myint";
    repo   = "cppclean";
    rev    = "e7da41eca5e1fd2bd1dddd6655e50128bb96dc28";
    sha256 = "0pymh6r7y19bwcypfkmgwyixrx36pmz338jd83yrjflsbjlriqm4";
  };

  postUnpack = ''
    patchShebangs .
    '';

  checkPhase = ''
    ./test.bash
    '';

  meta = with stdenv.lib; {
    description = "Finds problems in C++ source that slow development of large code bases";
    homepage    = https://github.com/myint/cppclean;
    license     = licenses.asl20;
    maintainers = with maintainers; [ nthorne ];
    platforms   = platforms.linux;
  };
}