2021-12-19 01:06:50 +00:00
|
|
|
{ lib
|
|
|
|
, buildGoModule
|
|
|
|
, fetchFromGitHub
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildGoModule rec {
|
|
|
|
pname = "log4j-vuln-scanner";
|
2022-01-03 16:56:52 +00:00
|
|
|
version = "0.11";
|
2021-12-19 01:06:50 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "hillu";
|
|
|
|
repo = "local-log4j-vuln-scanner";
|
|
|
|
rev = "v${version}";
|
2022-01-03 16:56:52 +00:00
|
|
|
sha256 = "sha256-YGo2dhfqLPNP8O9gdRJfxKmEK/pKd17WNTXQ2cq78qg=";
|
2021-12-19 01:06:50 +00:00
|
|
|
};
|
|
|
|
|
2022-01-03 16:56:52 +00:00
|
|
|
vendorSha256 = null;
|
2021-12-19 01:06:50 +00:00
|
|
|
|
|
|
|
postInstall = ''
|
|
|
|
mv $out/bin/scanner $out/bin/$pname
|
|
|
|
mv $out/bin/patcher $out/bin/log4j-vuln-patcher
|
|
|
|
'';
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Local log4j vulnerability scanner";
|
|
|
|
homepage = "https://github.com/hillu/local-log4j-vuln-scanner";
|
|
|
|
license = with licenses; [ gpl3Only ];
|
|
|
|
maintainers = with maintainers; [ fab ];
|
|
|
|
};
|
|
|
|
}
|