1{ lib, buildGoModule, fetchFromGitHub }:
2
3buildGoModule rec {
4 pname = "goconst";
5 version = "1.5.1";
6
7 excludedPackages = [ "tests" ];
8
9 src = fetchFromGitHub {
10 owner = "jgautheron";
11 repo = "goconst";
12 rev = "v${version}";
13 sha256 = "sha256-chBWxOy9V4pO3hMaeCoKwnQxIEYiSejUOD3QDBCpaoE=";
14 };
15
16 vendorSha256 = null;
17
18 ldflags = [ "-s" "-w" ];
19
20 meta = with lib; {
21 description = "Find in Go repeated strings that could be replaced by a constant";
22 homepage = "https://github.com/jgautheron/goconst";
23 license = licenses.mit;
24 maintainers = with maintainers; [ kalbasit ];
25 platforms = platforms.linux ++ platforms.darwin;
26 };
27}