log4j-detect: init at unstable-2021-12-14
This commit is contained in:
parent
a1b519b496
commit
c0aa017887
38
pkgs/tools/security/log4j-detect/default.nix
Normal file
38
pkgs/tools/security/log4j-detect/default.nix
Normal file
@ -0,0 +1,38 @@
|
||||
{ lib
|
||||
, fetchFromGitHub
|
||||
, python3
|
||||
}:
|
||||
|
||||
python3.pkgs.buildPythonApplication rec {
|
||||
pname = "log4j-detect";
|
||||
version = "unstable-2021-12-14";
|
||||
format = "other";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "takito1812";
|
||||
repo = pname;
|
||||
rev = "2f5b7a598a6d0b4aee8111bb574ea72c6a1c76d6";
|
||||
sha256 = "sha256-fFKW7uPBfrnze0UoPL3Mfwd4sFOuHYuDP7kv6VtdM3o=";
|
||||
};
|
||||
|
||||
propagatedBuildInputs = with python3.pkgs; [
|
||||
requests
|
||||
];
|
||||
|
||||
postPatch = ''
|
||||
sed -i "1 i #!/usr/bin/python" ${pname}.py
|
||||
'';
|
||||
|
||||
installPhase = ''
|
||||
runHook preInstall
|
||||
install -vD ${pname}.py $out/bin/${pname}
|
||||
runHook postInstall
|
||||
'';
|
||||
|
||||
meta = with lib; {
|
||||
description = "Tool to detect the log4j vulnerability";
|
||||
homepage = "https://github.com/takito1812/log4j-detect";
|
||||
license = licenses.unfree;
|
||||
maintainers = with maintainers; [ fab ];
|
||||
};
|
||||
}
|
@ -7463,6 +7463,8 @@ with pkgs;
|
||||
|
||||
localtime = callPackage ../tools/system/localtime { };
|
||||
|
||||
log4j-detect = callPackage ../tools/security/log4j-detect { };
|
||||
|
||||
log4j-scan = callPackage ../tools/security/log4j-scan { };
|
||||
|
||||
log4jcheck = callPackage ../tools/security/log4jcheck { };
|
||||
|
Loading…
Reference in New Issue
Block a user