summary refs log tree commit diff
path: root/pkgs/development/tools/goconst/default.nix
blob: 9ef94ffdc7fa3584a886bcec218b4d05ac3a3d98 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
{ buildGoPackage
, lib
, fetchFromGitHub
}:

buildGoPackage rec {
  name = "goconst-${version}";
  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;
  };
}