Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
40 lines
866 B
Nix
40 lines
866 B
Nix
{
|
|
lib,
|
|
fetchFromGitHub,
|
|
python3,
|
|
}:
|
|
|
|
python3.pkgs.buildPythonApplication {
|
|
pname = "log4j-detect";
|
|
version = "0-unstable-2021-12-14";
|
|
format = "other";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "takito1812";
|
|
repo = "log4j-detect";
|
|
rev = "2f5b7a598a6d0b4aee8111bb574ea72c6a1c76d6";
|
|
sha256 = "sha256-fFKW7uPBfrnze0UoPL3Mfwd4sFOuHYuDP7kv6VtdM3o=";
|
|
};
|
|
|
|
propagatedBuildInputs = with python3.pkgs; [
|
|
requests
|
|
];
|
|
|
|
postPatch = ''
|
|
sed -i "1 i #!/usr/bin/python" log4j-detect.py
|
|
'';
|
|
|
|
installPhase = ''
|
|
runHook preInstall
|
|
install -vD log4j-detect.py $out/bin/log4j-detect
|
|
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 ];
|
|
};
|
|
}
|