Merge pull request #268970 from prit342/add-nilaway

nilaway: init at unstable-2023-11-17
This commit is contained in:
Emily Trau 2023-11-23 01:14:28 +11:00 committed by GitHub
commit 82cce7df14
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 34 additions and 0 deletions

View File

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

View File

@ -0,0 +1,28 @@
{ 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";
};
}