nixpkgs/pkgs/development/tools/gocyclo/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

26 lines
594 B
Nix
Raw Normal View History

{ buildGoModule
2018-11-03 04:08:19 +00:00
, lib
, fetchFromGitHub
}:
buildGoModule rec {
pname = "gocyclo";
version = "0.4.0";
2018-11-03 04:08:19 +00:00
src = fetchFromGitHub {
owner = "fzipp";
2018-11-03 04:08:19 +00:00
repo = "gocyclo";
rev = "v${version}";
sha256 = "1s9m5m5p76wcxi5n4diz891kd5db4ll21fsh9fnvvf9w7yrmgdw2";
2018-11-03 04:08:19 +00:00
};
vendorSha256 = "0sjjj9z1dhilhpc8pq4154czrb79z9cm044jvn75kxcjv6v5l2m5";
2018-11-03 04:08:19 +00:00
meta = with lib; {
description = "Calculate cyclomatic complexities of functions in Go source code";
homepage = "https://github.com/fzipp/gocyclo";
2018-11-03 04:08:19 +00:00
license = licenses.bsd3;
maintainers = with maintainers; [ kalbasit ];
};
}