nixpkgs/pkgs/development/tools/gocyclo/default.nix
stuebinm ff1a94e523 treewide: add meta.mainProgram to packages with a single binary
The nixpkgs-unstable channel's programs.sqlite was used to identify
packages producing exactly one binary, and these automatically added
to their package definitions wherever possible.
2024-03-19 03:14:51 +01:00

27 lines
570 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=";
};
vendorHash = null;
meta = with lib; {
description = "Calculate cyclomatic complexities of functions in Go source code";
mainProgram = "gocyclo";
homepage = "https://github.com/fzipp/gocyclo";
license = licenses.bsd3;
maintainers = with maintainers; [ kalbasit ];
};
}