2018-11-03 04:49:58 +01:00
|
|
|
{ buildGoPackage
|
|
|
|
, lib
|
|
|
|
, fetchFromGitHub
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildGoPackage rec {
|
2019-08-15 14:41:18 +02:00
|
|
|
pname = "goconst";
|
2020-11-21 23:43:54 +01:00
|
|
|
version = "1.4.0";
|
2018-11-03 04:49:58 +01:00
|
|
|
|
|
|
|
goPackagePath = "github.com/jgautheron/goconst";
|
2020-10-01 11:20:00 +02:00
|
|
|
|
|
|
|
excludedPackages = [ "tests" ];
|
2018-11-03 04:49:58 +01:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "jgautheron";
|
|
|
|
repo = "goconst";
|
|
|
|
rev = version;
|
2020-11-21 23:43:54 +01:00
|
|
|
sha256 = "0jp9vg5l4wcvnf653h3d8ay2n7y717l9z34rls1vrsaf0qdf1r6v";
|
2018-11-03 04:49:58 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Find in Go repeated strings that could be replaced by a constant";
|
2020-04-01 03:11:51 +02:00
|
|
|
homepage = "https://github.com/jgautheron/goconst";
|
2018-11-03 04:49:58 +01:00
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = with maintainers; [ kalbasit ];
|
|
|
|
platforms = platforms.linux ++ platforms.darwin;
|
|
|
|
};
|
|
|
|
}
|