587713944a
GitOrigin-RevId: 6143fc5eeb9c4f00163267708e26191d1e918932
28 lines
693 B
Nix
28 lines
693 B
Nix
{ lib, buildGoModule, fetchFromGitHub }:
|
|
|
|
buildGoModule rec {
|
|
pname = "goconst";
|
|
version = "1.7.1";
|
|
|
|
excludedPackages = [ "tests" ];
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "jgautheron";
|
|
repo = "goconst";
|
|
rev = "v${version}";
|
|
sha256 = "sha256-GpOZJ5/5aNw1o8fk2RSAx200v6AZ+pbNu/25i8OSS1Y=";
|
|
};
|
|
|
|
vendorHash = null;
|
|
|
|
ldflags = [ "-s" "-w" ];
|
|
|
|
meta = with lib; {
|
|
description = "Find in Go repeated strings that could be replaced by a constant";
|
|
mainProgram = "goconst";
|
|
homepage = "https://github.com/jgautheron/goconst";
|
|
license = licenses.mit;
|
|
maintainers = with maintainers; [ kalbasit ];
|
|
platforms = platforms.linux ++ platforms.darwin;
|
|
};
|
|
}
|