8ac5e011d6
GitOrigin-RevId: 2c3273caa153ee8eb5786bc8141b85b859e7efd7
27 lines
665 B
Nix
27 lines
665 B
Nix
{ buildGoPackage
|
|
, lib
|
|
, fetchFromGitHub
|
|
}:
|
|
|
|
buildGoPackage rec {
|
|
pname = "goconst";
|
|
version = "1.1.0";
|
|
|
|
goPackagePath = "github.com/jgautheron/goconst";
|
|
excludedPackages = ''testdata'';
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "jgautheron";
|
|
repo = "goconst";
|
|
rev = version;
|
|
sha256 = "0zhscvv9w54q1h2vs8xx3qkz98cf36qhxjvdq0xyz3qvn4vhnyw6";
|
|
};
|
|
|
|
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;
|
|
};
|
|
}
|