2022-05-02 02:47:38 +00:00
|
|
|
{ lib, buildGoModule, fetchFromGitHub }:
|
2018-11-03 03:49:58 +00:00
|
|
|
|
2022-05-02 02:47:38 +00:00
|
|
|
buildGoModule rec {
|
2019-08-15 12:41:18 +00:00
|
|
|
pname = "goconst";
|
2024-03-20 23:18:11 +00:00
|
|
|
version = "1.7.1";
|
2020-10-01 09:20:00 +00:00
|
|
|
|
|
|
|
excludedPackages = [ "tests" ];
|
2018-11-03 03:49:58 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "jgautheron";
|
|
|
|
repo = "goconst";
|
2022-05-02 02:47:38 +00:00
|
|
|
rev = "v${version}";
|
2024-03-20 23:18:11 +00:00
|
|
|
sha256 = "sha256-GpOZJ5/5aNw1o8fk2RSAx200v6AZ+pbNu/25i8OSS1Y=";
|
2018-11-03 03:49:58 +00:00
|
|
|
};
|
|
|
|
|
2023-09-06 20:10:48 +00:00
|
|
|
vendorHash = null;
|
2022-05-02 02:47:38 +00:00
|
|
|
|
|
|
|
ldflags = [ "-s" "-w" ];
|
|
|
|
|
2018-11-03 03:49:58 +00:00
|
|
|
meta = with lib; {
|
|
|
|
description = "Find in Go repeated strings that could be replaced by a constant";
|
2024-03-19 02:14:51 +00:00
|
|
|
mainProgram = "goconst";
|
2020-04-01 01:11:51 +00:00
|
|
|
homepage = "https://github.com/jgautheron/goconst";
|
2018-11-03 03:49:58 +00:00
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = with maintainers; [ kalbasit ];
|
|
|
|
platforms = platforms.linux ++ platforms.darwin;
|
|
|
|
};
|
|
|
|
}
|