about summary refs log tree commit diff
path: root/nixpkgs/pkgs/development/tools/golangci-lint/default.nix
blob: d2db1f1a2a699e297f446b8b0072571f125b3274 (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
{ buildGoPackage, fetchFromGitHub, lib }:

buildGoPackage rec {
  name = "golangci-lint-${version}";
  version = "1.9.2";
  goPackagePath = "github.com/golangci/golangci-lint";

  subPackages = [ "cmd/golangci-lint" ];

  src = fetchFromGitHub {
    owner = "golangci";
    repo = "golangci-lint";
    rev = "v${version}";
    sha256 = "0r05j6ayk5778fkd5r1sgcwq675ra0vq82lqs125g70291ryha08";
  };

  meta = with lib; {
    description = "Linters Runner for Go. 5x faster than gometalinter. Nice colored output.";
    homepage = https://golangci.com/;
    license = licenses.agpl3;
    platforms = platforms.unix;
    maintainers = [ maintainers.manveru ];
  };
}