2023-11-30 14:50:16 +01:00
|
|
|
{ lib
|
|
|
|
, buildGoModule
|
|
|
|
, fetchFromGitHub
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildGoModule rec {
|
|
|
|
pname = "go-errorlint";
|
2024-05-05 17:17:16 +02:00
|
|
|
version = "1.5.1";
|
2023-11-30 14:50:16 +01:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "polyfloyd";
|
|
|
|
repo = "go-errorlint";
|
|
|
|
rev = "v${version}";
|
2024-05-05 17:17:16 +02:00
|
|
|
hash = "sha256-xO9AC1z3JNTRVEpM/FF8x+AMfmspU64kUywvpMb2yxM=";
|
2023-11-30 14:50:16 +01:00
|
|
|
};
|
|
|
|
|
2024-05-05 17:17:16 +02:00
|
|
|
vendorHash = "sha256-pSajd2wyefHgxMvhDKs+qwre4BMRBv97v/tZOjiT3LE=";
|
2023-11-30 14:50:16 +01:00
|
|
|
|
|
|
|
ldflags = [ "-s" "-w" ];
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "A source code linter that can be used to find code that will cause problems with Go's error wrapping scheme";
|
|
|
|
homepage = "https://github.com/polyfloyd/go-errorlint";
|
|
|
|
changelog = "https://github.com/polyfloyd/go-errorlint/blob/${src.rev}/CHANGELOG.md";
|
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = with maintainers; [ meain ];
|
|
|
|
mainProgram = "go-errorlint";
|
|
|
|
};
|
|
|
|
}
|