2024-01-02 11:29:13 +00:00
|
|
|
{ lib
|
|
|
|
, buildGoModule
|
|
|
|
, fetchFromGitHub
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildGoModule rec {
|
|
|
|
pname = "nilaway";
|
2024-04-21 15:54:59 +00:00
|
|
|
version = "0-unstable-2024-04-04";
|
2024-01-02 11:29:13 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "uber-go";
|
|
|
|
repo = "nilaway";
|
2024-04-21 15:54:59 +00:00
|
|
|
rev = "755a685ab68b85d9b36833b38972a559f217d396";
|
|
|
|
hash = "sha256-sDDBITrGD79pcbsrcrs6D8njBp4kuK1NkuBPwzIkaUE=";
|
2024-01-02 11:29:13 +00:00
|
|
|
};
|
|
|
|
|
2024-04-21 15:54:59 +00:00
|
|
|
vendorHash = "sha256-1j7NwfqrinEQL6XBO0PvwzxFytujoCtynMEXL2oTLkM=";
|
|
|
|
|
|
|
|
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";
|
|
|
|
};
|
|
|
|
}
|