2020-04-24 23:36:52 +00:00
|
|
|
{ buildGoPackage
|
|
|
|
, lib
|
|
|
|
, fetchFromGitHub
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildGoPackage rec {
|
|
|
|
pname = "goconst";
|
2020-11-24 20:58:05 +00:00
|
|
|
version = "1.4.0";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
goPackagePath = "github.com/jgautheron/goconst";
|
2020-10-07 09:15:18 +00:00
|
|
|
|
|
|
|
excludedPackages = [ "tests" ];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "jgautheron";
|
|
|
|
repo = "goconst";
|
|
|
|
rev = version;
|
2020-11-24 20:58:05 +00:00
|
|
|
sha256 = "0jp9vg5l4wcvnf653h3d8ay2n7y717l9z34rls1vrsaf0qdf1r6v";
|
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;
|
|
|
|
};
|
|
|
|
}
|