nixpkgs/pkgs/tools/security/log4j-vuln-scanner/default.nix

31 lines
732 B
Nix
Raw Normal View History

2021-12-14 16:48:55 +01:00
{ lib
, buildGoModule
, fetchFromGitHub
}:
buildGoModule rec {
pname = "log4j-vuln-scanner";
2021-12-20 09:46:01 +01:00
version = "0.10";
2021-12-14 16:48:55 +01:00
src = fetchFromGitHub {
owner = "hillu";
repo = "local-log4j-vuln-scanner";
rev = "v${version}";
2021-12-20 09:46:01 +01:00
sha256 = "sha256-w3S+OxSTRgmFJOODDOoK33ddckv18LNnZyx7/HBTl9I=";
2021-12-14 16:48:55 +01:00
};
vendorSha256 = "sha256-pQpattmS9VmO3ZIQUFn66az8GSmB4IvYhTTCFn6SUmo=";
2021-12-15 10:21:20 +01:00
postInstall = ''
mv $out/bin/scanner $out/bin/$pname
mv $out/bin/patcher $out/bin/log4j-vuln-patcher
'';
2021-12-14 16:48:55 +01:00
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 ];
};
}