mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-19 12:11:28 +00:00
31 lines
683 B
Nix
31 lines
683 B
Nix
{ lib
|
|
, buildGoModule
|
|
, fetchFromGitHub
|
|
}:
|
|
|
|
buildGoModule rec {
|
|
pname = "log4j-vuln-scanner";
|
|
version = "0.11";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "hillu";
|
|
repo = "local-log4j-vuln-scanner";
|
|
rev = "v${version}";
|
|
sha256 = "sha256-YGo2dhfqLPNP8O9gdRJfxKmEK/pKd17WNTXQ2cq78qg=";
|
|
};
|
|
|
|
vendorSha256 = null;
|
|
|
|
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 ];
|
|
};
|
|
}
|