2022-02-03 15:08:38 +00:00
|
|
|
{ buildGoModule
|
2018-11-03 04:08:19 +00:00
|
|
|
, lib
|
|
|
|
, fetchFromGitHub
|
|
|
|
}:
|
|
|
|
|
2022-02-03 15:08:38 +00:00
|
|
|
buildGoModule rec {
|
|
|
|
pname = "gocyclo";
|
2022-08-29 00:19:50 +00:00
|
|
|
version = "0.6.0";
|
2018-11-03 04:08:19 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
2022-02-03 15:08:38 +00:00
|
|
|
owner = "fzipp";
|
2018-11-03 04:08:19 +00:00
|
|
|
repo = "gocyclo";
|
2022-02-03 15:08:38 +00:00
|
|
|
rev = "v${version}";
|
2022-08-29 00:19:50 +00:00
|
|
|
sha256 = "sha256-1IwtGUqshpLDyxH5NNkGUads1TKLs48eslNnFylGUPA=";
|
2018-11-03 04:08:19 +00:00
|
|
|
};
|
|
|
|
|
2022-08-29 00:19:50 +00:00
|
|
|
vendorSha256 = "sha256-pQpattmS9VmO3ZIQUFn66az8GSmB4IvYhTTCFn6SUmo=";
|
2022-02-03 15:08:38 +00:00
|
|
|
|
2018-11-03 04:08:19 +00:00
|
|
|
meta = with lib; {
|
2020-10-11 05:55:05 +00:00
|
|
|
description = "Calculate cyclomatic complexities of functions in Go source code";
|
2022-02-03 15:08:38 +00:00
|
|
|
homepage = "https://github.com/fzipp/gocyclo";
|
2018-11-03 04:08:19 +00:00
|
|
|
license = licenses.bsd3;
|
|
|
|
maintainers = with maintainers; [ kalbasit ];
|
|
|
|
};
|
|
|
|
}
|