nixpkgs/pkgs/by-name/ni/nilaway/package.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

31 lines
730 B
Nix
Raw Normal View History

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