depot/third_party/nixpkgs/pkgs/tools/security/log4j-vuln-scanner/default.nix
Default email 3cbfd2b52c Project import generated by Copybara.
GitOrigin-RevId: 395879c28386e1abf20c7ecacd45880759548391
2021-12-18 20:06:50 -05:00

30 lines
733 B
Nix

{ lib
, buildGoModule
, fetchFromGitHub
}:
buildGoModule rec {
pname = "log4j-vuln-scanner";
version = "0.8.1";
src = fetchFromGitHub {
owner = "hillu";
repo = "local-log4j-vuln-scanner";
rev = "v${version}";
sha256 = "sha256-qmm+5UATARuKyZltiVtIp/jOn0eUenWt7ztIfrN4q+0=";
};
vendorSha256 = "sha256-pQpattmS9VmO3ZIQUFn66az8GSmB4IvYhTTCFn6SUmo=";
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 ];
};
}