mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-02 03:43:06 +00:00
26 lines
592 B
Nix
26 lines
592 B
Nix
{ buildGoModule
|
|
, lib
|
|
, fetchFromGitHub
|
|
}:
|
|
|
|
buildGoModule rec {
|
|
pname = "gocyclo";
|
|
version = "0.6.0";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "fzipp";
|
|
repo = "gocyclo";
|
|
rev = "v${version}";
|
|
sha256 = "sha256-1IwtGUqshpLDyxH5NNkGUads1TKLs48eslNnFylGUPA=";
|
|
};
|
|
|
|
vendorSha256 = "sha256-pQpattmS9VmO3ZIQUFn66az8GSmB4IvYhTTCFn6SUmo=";
|
|
|
|
meta = with lib; {
|
|
description = "Calculate cyclomatic complexities of functions in Go source code";
|
|
homepage = "https://github.com/fzipp/gocyclo";
|
|
license = licenses.bsd3;
|
|
maintainers = with maintainers; [ kalbasit ];
|
|
};
|
|
}
|