2024-01-02 11:29:13 +00:00
|
|
|
{ lib
|
|
|
|
, buildGoModule
|
|
|
|
, fetchFromGitHub
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildGoModule rec {
|
|
|
|
pname = "nilaway";
|
2024-07-01 15:47:52 +00:00
|
|
|
version = "0-unstable-2024-06-29";
|
2024-01-02 11:29:13 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "uber-go";
|
|
|
|
repo = "nilaway";
|
2024-07-01 15:47:52 +00:00
|
|
|
rev = "e90288479601315af13b7fdd3ccd6b50c53a8e7c";
|
|
|
|
hash = "sha256-6bArrCcAZc8DWJlDxKKmlHAbcEuU68HgqJTK9s7ZGig=";
|
2024-01-02 11:29:13 +00:00
|
|
|
};
|
|
|
|
|
2024-07-01 15:47:52 +00:00
|
|
|
vendorHash = "sha256-rLyU2HdlkDFh+MBIVnbEIIlVR7/mq9heZWzN7GRw0Dc=";
|
2024-04-21 15:54:59 +00:00
|
|
|
|
|
|
|
excludedPackages = [ "tools" ];
|
2024-01-02 11:29:13 +00:00
|
|
|
|
|
|
|
ldflags = [ "-s" "-w" ];
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Static Analysis tool to detect potential Nil panics in Go code";
|
|
|
|
homepage = "https://github.com/uber-go/nilaway";
|
|
|
|
license = licenses.asl20;
|
|
|
|
maintainers = with maintainers; [ prit342 jk ];
|
|
|
|
mainProgram = "nilaway";
|
|
|
|
};
|
|
|
|
}
|