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

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

27 lines
570 B
Nix
Raw Normal View History

{ buildGoModule
2018-11-03 04:08:19 +00:00
, lib
, fetchFromGitHub
}:
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 {
owner = "fzipp";
2018-11-03 04:08:19 +00:00
repo = "gocyclo";
rev = "v${version}";
2022-08-29 00:19:50 +00:00
sha256 = "sha256-1IwtGUqshpLDyxH5NNkGUads1TKLs48eslNnFylGUPA=";
2018-11-03 04:08:19 +00:00
};
vendorHash = null;
2018-11-03 04:08:19 +00:00
meta = with lib; {
description = "Calculate cyclomatic complexities of functions in Go source code";
mainProgram = "gocyclo";
homepage = "https://github.com/fzipp/gocyclo";
2018-11-03 04:08:19 +00:00
license = licenses.bsd3;
maintainers = with maintainers; [ kalbasit ];
};
}