Files
nixpkgs/pkgs/by-name/ni/nilaway/package.nix
Dark Steveneq 646b892680
Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
push sheeet
2025-10-09 14:15:47 +02: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";
};
}