2018-11-03 03:49:58 +00:00
|
|
|
{ buildGoPackage
|
|
|
|
, lib
|
|
|
|
, fetchFromGitHub
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildGoPackage rec {
|
2019-08-15 12:41:18 +00:00
|
|
|
pname = "goconst";
|
2020-09-25 08:15:27 +00:00
|
|
|
version = "1.2.0";
|
2018-11-03 03:49:58 +00:00
|
|
|
|
|
|
|
goPackagePath = "github.com/jgautheron/goconst";
|
|
|
|
excludedPackages = ''testdata'';
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "jgautheron";
|
|
|
|
repo = "goconst";
|
|
|
|
rev = version;
|
2020-09-25 08:15:27 +00:00
|
|
|
sha256 = "10yy9llmbznaq3v11sxywk1wpwhn0ddly7lxs31z1sf8paan7aig";
|
2018-11-03 03:49:58 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Find in Go repeated strings that could be replaced by a constant";
|
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;
|
|
|
|
};
|
|
|
|
}
|