log4j-sniffer: init at 0.4.0

This commit is contained in:
Fabian Affolter 2021-12-18 10:42:23 +01:00
parent c2adea7c9c
commit 0f7239019d
2 changed files with 38 additions and 0 deletions

View File

@ -0,0 +1,36 @@
{ lib
, buildGoModule
, fetchFromGitHub
, git
}:
buildGoModule rec {
pname = "log4j-sniffer";
version = "0.4.0";
src = fetchFromGitHub {
owner = "palantir";
repo = pname;
rev = "v${version}";
sha256 = "sha256-o2uFO+y2Bni3YtxJDyJ4w3WvKX7lUBFBe7GPBI7OjIg=";
};
vendorSha256 = null;
checkInputs = [
git
];
preCheck = ''
export HOME=$(mktemp -d);
cd $HOME
git init
'';
meta = with lib; {
description = "Tool that scans archives to check for vulnerable log4j versions";
homepage = "https://github.com/palantir/log4j-sniffer";
license = with licenses; [ asl20 ];
maintainers = with maintainers; [ fab ];
};
}

View File

@ -7480,6 +7480,8 @@ with pkgs;
log4j-scan = callPackage ../tools/security/log4j-scan { };
log4j-sniffer = callPackage ../tools/security/log4j-sniffer { };
log4j-vuln-scanner = callPackage ../tools/security/log4j-vuln-scanner { };
log4jcheck = callPackage ../tools/security/log4jcheck { };