Unverified Commit 82cce7df authored by Emily Trau's avatar Emily Trau Committed by GitHub
Browse files

Merge pull request #268970 from prit342/add-nilaway

nilaway: init at unstable-2023-11-17
parents c4a132e4 586299e1
Loading
Loading
Loading
Loading
+6 −0
Original line number Diff line number Diff line
@@ -14566,6 +14566,12 @@
    name = "Philipp Rintz";
    matrix = "@philipp:srv.icu";
  };
  prit342 = {
    email = "prithak342@gmail.com";
    github = "prit342";
    githubId = 20863431;
    name = "Prithak S.";
  };
  ProducerMatt = {
    name = "Matthew Pherigo";
    email = "ProducerMatt42@gmail.com";
+28 −0
Original line number Diff line number Diff line
{ lib
, buildGoModule
, fetchFromGitHub
}:

buildGoModule rec {
  pname = "nilaway";
  version = "unstable-2023-11-17";

  src = fetchFromGitHub {
    owner = "uber-go";
    repo = "nilaway";
    rev = "a267567c6ffff900df0c3394d031ee70079ec8df";
    hash = "sha256-Ro1nSTEZcE9u4Ol6CSLBTiPrh72Ly9UcrXyvffzPfow=";
  };

  vendorHash = "sha256-kbVjkWW5D8jp5QFYGiyRuGFArRsQukJIR8xwaUUIUBs=";

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