mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-10-19 19:52:28 +03:00
log4j-sniffer: init at 0.4.0
This commit is contained in:
parent
c2adea7c9c
commit
0f7239019d
36
pkgs/tools/security/log4j-sniffer/default.nix
Normal file
36
pkgs/tools/security/log4j-sniffer/default.nix
Normal 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 ];
|
||||
};
|
||||
}
|
@ -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 { };
|
||||
|
Loading…
Reference in New Issue
Block a user