about summary refs log tree commit diff
path: root/pkgs/by-name/ni/nilaway/package.nix
blob: a4b3f4c4f32799269a676bc2f8efb2e6a1f74687 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
{ lib
, buildGoModule
, fetchFromGitHub
}:

buildGoModule rec {
  pname = "nilaway";
  version = "0-unstable-2024-06-29";

  src = fetchFromGitHub {
    owner = "uber-go";
    repo = "nilaway";
    rev = "e90288479601315af13b7fdd3ccd6b50c53a8e7c";
    hash = "sha256-6bArrCcAZc8DWJlDxKKmlHAbcEuU68HgqJTK9s7ZGig=";
  };

  vendorHash = "sha256-rLyU2HdlkDFh+MBIVnbEIIlVR7/mq9heZWzN7GRw0Dc=";

  excludedPackages = [ "tools" ];

  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";
  };
}