2022-05-18 14:49:53 +00:00
|
|
|
{ lib, buildGoModule, fetchFromGitHub }:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2022-05-18 14:49:53 +00:00
|
|
|
buildGoModule rec {
|
2020-04-24 23:36:52 +00:00
|
|
|
pname = "goconst";
|
2022-05-18 14:49:53 +00:00
|
|
|
version = "1.5.1";
|
2020-10-07 09:15:18 +00:00
|
|
|
|
|
|
|
excludedPackages = [ "tests" ];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "jgautheron";
|
|
|
|
repo = "goconst";
|
2022-05-18 14:49:53 +00:00
|
|
|
rev = "v${version}";
|
|
|
|
sha256 = "sha256-chBWxOy9V4pO3hMaeCoKwnQxIEYiSejUOD3QDBCpaoE=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2023-02-02 18:25:31 +00:00
|
|
|
vendorSha256 = null;
|
2022-05-18 14:49:53 +00:00
|
|
|
|
|
|
|
ldflags = [ "-s" "-w" ];
|
|
|
|
|
2020-04-24 23:36:52 +00:00
|
|
|
meta = with lib; {
|
|
|
|
description = "Find in Go repeated strings that could be replaced by a constant";
|
|
|
|
homepage = "https://github.com/jgautheron/goconst";
|
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = with maintainers; [ kalbasit ];
|
|
|
|
platforms = platforms.linux ++ platforms.darwin;
|
|
|
|
};
|
|
|
|
}
|