1 { buildGoModule, fetchFromGitHub, lib, installShellFiles }:
4 pname = "golangci-lint";
7 src = fetchFromGitHub {
9 repo = "golangci-lint";
11 sha256 = "sha256-7HoneQtKxjQVvaTdkjPeu+vJWVOZG3AOiRD87/Ntgn8=";
14 vendorSha256 = "sha256-6ttRd2E8Zsf/2StNYt6JSC64A57QIv6EbwAwJfhTDaY=";
18 subPackages = [ "cmd/golangci-lint" ];
20 nativeBuildInputs = [ installShellFiles ];
25 "-X main.version=${version}"
26 "-X main.commit=v${version}"
27 "-X main.date=19700101-00:00:00"
31 for shell in bash zsh fish; do
32 HOME=$TMPDIR $out/bin/golangci-lint completion $shell > golangci-lint.$shell
33 installShellCompletion golangci-lint.$shell
38 description = "Fast linters Runner for Go";
39 homepage = "https://golangci-lint.run/";
40 license = licenses.gpl3Plus;
41 maintainers = with maintainers; [ anpryl manveru mic92 ];