about summary refs log tree commit diff
path: root/pkgs/by-name/go
diff options
context:
space:
mode:
authorPaul Meyer <49727155+katexochen@users.noreply.github.com>2024-02-29 15:10:22 +0100
committerGitHub <noreply@github.com>2024-02-29 15:10:22 +0100
commit33eb16320b37da4f69b95c476379a41a27d10771 (patch)
tree8546a7c44b69efffefbfb15df9080d9166f55d1c /pkgs/by-name/go
parenta9962e1fa83d8fa51bb4495738309ff5b6fa2afa (diff)
parent48839cd0f1c367ff498f964d23178c8c944173bc (diff)
Merge pull request #271189 from meain/go-errorlint
go-errorlint: init at 1.4.5
Diffstat (limited to 'pkgs/by-name/go')
-rw-r--r--pkgs/by-name/go/go-errorlint/package.nix29
1 files changed, 29 insertions, 0 deletions
diff --git a/pkgs/by-name/go/go-errorlint/package.nix b/pkgs/by-name/go/go-errorlint/package.nix
new file mode 100644
index 0000000000000..5c67519c4ea5f
--- /dev/null
+++ b/pkgs/by-name/go/go-errorlint/package.nix
@@ -0,0 +1,29 @@
+{ lib
+, buildGoModule
+, fetchFromGitHub
+}:
+
+buildGoModule rec {
+  pname = "go-errorlint";
+  version = "1.4.5";
+
+  src = fetchFromGitHub {
+    owner = "polyfloyd";
+    repo = "go-errorlint";
+    rev = "v${version}";
+    hash = "sha256-BU+3sLUGBCFA1JYFxTEyIan+iWB7Y7SaMFVomfNObMg=";
+  };
+
+  vendorHash = "sha256-xn7Ou4l8vbPD44rsN0mdFjTzOvkfv6QN6i5XR1XPxTE=";
+
+  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";
+  };
+}