2023-11-21 14:04:19 +00:00
|
|
|
{ lib
|
|
|
|
, buildGoModule
|
|
|
|
, fetchFromGitHub
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildGoModule rec {
|
|
|
|
pname = "nilaway";
|
2024-04-06 02:41:14 +00:00
|
|
|
version = "0-unstable-2024-04-04";
|
2023-11-21 14:04:19 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "uber-go";
|
|
|
|
repo = "nilaway";
|
2024-04-06 02:41:14 +00:00
|
|
|
rev = "755a685ab68b85d9b36833b38972a559f217d396";
|
|
|
|
hash = "sha256-sDDBITrGD79pcbsrcrs6D8njBp4kuK1NkuBPwzIkaUE=";
|
2023-11-21 14:04:19 +00:00
|
|
|
};
|
|
|
|
|
2024-04-06 02:41:14 +00:00
|
|
|
vendorHash = "sha256-1j7NwfqrinEQL6XBO0PvwzxFytujoCtynMEXL2oTLkM=";
|
|
|
|
|
|
|
|
excludedPackages = [ "tools" ];
|
2023-11-21 14:04:19 +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";
|
|
|
|
};
|
|
|
|
}
|