summary refs log tree commit diff
path: root/pkgs/development/tools/gocyclo/default.nix
blob: 91ebaff803ebbfef8ec7da4ac3ee9621f64c3a9a (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
{ buildGoPackage
, lib
, fetchFromGitHub
}:

buildGoPackage rec {
  name = "gocyclo-unstable-${version}";
  version = "2015-02-08";
  rev = "aa8f8b160214d8dfccfe3e17e578dd0fcc6fede7";

  goPackagePath = "github.com/alecthomas/gocyclo";

  src = fetchFromGitHub {
    inherit rev;

    owner = "alecthomas";
    repo = "gocyclo";
    sha256 = "094rj97q38j53lmn2scshrg8kws8c542yq5apih1ahm9wdkv8pxr";
  };

  meta = with lib; {
    description = "Calculate cyclomatic complexities of functions in Go source code.";
    homepage = https://github.com/alecthomas/gocyclo;
    license = licenses.bsd3;
    maintainers = with maintainers; [ kalbasit ];
    platforms = platforms.linux ++ platforms.darwin;
  };
}