base16-schemes: unstable-2024-06-21 -> unstable-2024-11-12
[NixPkgs.git] / pkgs / by-name / ni / nilaway / package.nix
blob4a899e7ef6902c91dc14a2b748698895df10a4ec
2   lib,
3   buildGoModule,
4   fetchFromGitHub,
5 }:
7 buildGoModule rec {
8   pname = "nilaway";
9   version = "0-unstable-2024-10-10";
11   src = fetchFromGitHub {
12     owner = "uber-go";
13     repo = "nilaway";
14     rev = "ba14292918d814eeaea4de62da2ad0daae92f8b0";
15     hash = "sha256-HAfuhGxmnMJvkz2vxBZ5kWsgSIw5KKlZp36HCLfCRxo=";
16   };
18   vendorHash = "sha256-5qaEvQoK5S0svqzFAbJb8wy8yApyRpz4QE8sOhcjdaA=";
20   subPackages = [ "cmd/nilaway" ];
21   excludedPackages = [ "tools" ];
23   ldflags = [
24     "-s"
25     "-w"
26   ];
28   preCheck = ''
29     # test all paths
30     unset subPackages
31   '';
33   meta = with lib; {
34     description = "Static Analysis tool to detect potential Nil panics in Go code";
35     homepage = "https://github.com/uber-go/nilaway";
36     license = licenses.asl20;
37     maintainers = with maintainers; [
38       prit342
39       jk
40     ];
41     mainProgram = "nilaway";
42   };