nixpkgs/pkgs/by-name/vu/vuls/package.nix
2024-12-08 16:35:18 +00:00

41 lines
988 B
Nix

{
lib,
buildGoModule,
fetchFromGitHub,
}:
buildGoModule rec {
pname = "vuls";
version = "0.28.0";
src = fetchFromGitHub {
owner = "future-architect";
repo = "vuls";
rev = "refs/tags/v${version}";
hash = "sha256-J7kH9XUk+DQmoo5pQd9I0NuGPmR3pYrZ0WG0hKaPFvk=";
fetchSubmodules = true;
};
vendorHash = "sha256-vrIbD6HB7JikBQZk0rmt5EQxS2JYjQkzFaLYBPvdx+Q=";
ldflags = [
"-s"
"-w"
"-X=github.com/future-architect/vuls/config.Version=${version}"
"-X=github.com/future-architect/vuls/config.Revision=${src.rev}-1970-01-01T00:00:00Z"
];
postFixup = ''
mv $out/bin/cmd $out/bin/trivy-to-vuls
'';
meta = {
description = "Agent-less vulnerability scanner";
homepage = "https://github.com/future-architect/vuls";
changelog = "https://github.com/future-architect/vuls/blob/${src.rev}/CHANGELOG.md";
license = lib.licenses.gpl3Only;
maintainers = with lib.maintainers; [ fab ];
mainProgram = "vuls";
};
}