about summary refs log tree commit diff
path: root/nixpkgs/pkgs/development/tools/cppclean/default.nix
blob: d48e21fffb5daeeeebb7fe75aba06f0d3a7c284c (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
32
{ lib, fetchFromGitHub, python3Packages }:

with python3Packages;

buildPythonApplication rec {
  pname = "cppclean";
  version = "0.13";

  src = fetchFromGitHub {
    owner  = "myint";
    repo   = "cppclean";
    rev    = "v${version}";
    sha256 = "081bw7kkl7mh3vwyrmdfrk3fgq8k5laacx7hz8fjpchrvdrkqph0";
  };

  postUnpack = ''
    patchShebangs .
    '';

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

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