Olivér Falvai 1f5a39ac7b
nilaway: 0-unstable-2024-10-10 -> 0-unstable-2025-03-07
Also fixes build after the Go 1.24 upgrade in staging-next: https://hydra.nixos.org/build/291836003/log/tail
2025-03-10 21:15:56 +01:00

44 lines
858 B
Nix

{
lib,
buildGoModule,
fetchFromGitHub,
}:
buildGoModule {
pname = "nilaway";
version = "0-unstable-2025-03-07";
src = fetchFromGitHub {
owner = "uber-go";
repo = "nilaway";
rev = "19305c7c699bd0d370acd26d6769df1d7af8fb29";
hash = "sha256-99L9dF76vZbh1NdXtKu5Bcnnca94Roybm3q18SDmZAk=";
};
vendorHash = "sha256-pthCLpy5pISKwdmeaJxPq8BxJLUwLwS2/hGMBt6/O4I=";
subPackages = [ "cmd/nilaway" ];
excludedPackages = [ "tools" ];
ldflags = [
"-s"
"-w"
];
preCheck = ''
# test all paths
unset subPackages
'';
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";
};
}