3
0
Fork 0
forked from mirrors/nixpkgs
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
592 B
Nix
Raw Normal View History

{ buildGoModule
2018-11-03 04:08:19 +00:00
, lib
, fetchFromGitHub
}:
buildGoModule rec {
pname = "gocyclo";
2022-08-29 01:19:50 +01:00
version = "0.6.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}";
2022-08-29 01:19:50 +01:00
sha256 = "sha256-1IwtGUqshpLDyxH5NNkGUads1TKLs48eslNnFylGUPA=";
2018-11-03 04:08:19 +00:00
};
2022-08-29 01:19:50 +01:00
vendorSha256 = "sha256-pQpattmS9VmO3ZIQUFn66az8GSmB4IvYhTTCFn6SUmo=";
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 ];
};
}