1 { buildGoModule, fetchFromGitHub, lib, installShellFiles }:
4 pname = "golangci-lint";
7 src = fetchFromGitHub {
9 repo = "golangci-lint";
11 hash = "sha256-d3U56fRIyntj/uKTOHuKFvOZqh+6VtzYrbKDjcKzhbI=";
14 vendorHash = "sha256-3gS/F1jcjegtkLfmPcBzYqDA4KmwABkKpPAhTxqguYw=";
16 subPackages = [ "cmd/golangci-lint" ];
18 nativeBuildInputs = [ installShellFiles ];
23 "-X main.version=${version}"
24 "-X main.commit=v${version}"
25 "-X main.date=19700101-00:00:00"
29 for shell in bash zsh fish; do
30 HOME=$TMPDIR $out/bin/golangci-lint completion $shell > golangci-lint.$shell
31 installShellCompletion golangci-lint.$shell
36 description = "Fast linters Runner for Go";
37 homepage = "https://golangci-lint.run/";
38 changelog = "https://github.com/golangci/golangci-lint/blob/v${version}/CHANGELOG.md";
39 mainProgram = "golangci-lint";
40 license = licenses.gpl3Plus;
41 maintainers = with maintainers; [ anpryl manveru mic92 ];