2018-11-03 03:49:58 +00:00
|
|
|
{ buildGoPackage
|
|
|
|
, lib
|
|
|
|
, fetchFromGitHub
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildGoPackage rec {
|
2019-08-15 13:41:18 +01:00
|
|
|
pname = "goconst";
|
2020-11-11 07:40:48 +00:00
|
|
|
version = "1.3.2";
|
2018-11-03 03:49:58 +00:00
|
|
|
|
|
|
|
goPackagePath = "github.com/jgautheron/goconst";
|
2020-10-01 10:20:00 +01:00
|
|
|
|
|
|
|
excludedPackages = [ "tests" ];
|
2018-11-03 03:49:58 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "jgautheron";
|
|
|
|
repo = "goconst";
|
|
|
|
rev = version;
|
2020-11-11 07:40:48 +00:00
|
|
|
sha256 = "0bfiblp1498ic5jbdsm6mnc8s9drhasbqsw0asi6kmcz2kmslp9s";
|
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 02:11:51 +01: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;
|
|
|
|
};
|
|
|
|
}
|