
Diff: https://github.com/future-architect/vuls/compare/refs/tags/v0.33.1...refs/tags/v0.33.2 Changelog: https://github.com/future-architect/vuls/blob/refs/tags/v0.33.2/CHANGELOG.md
41 lines
984 B
Nix
41 lines
984 B
Nix
{
|
|
lib,
|
|
buildGo124Module,
|
|
fetchFromGitHub,
|
|
}:
|
|
|
|
buildGo124Module rec {
|
|
pname = "vuls";
|
|
version = "0.33.2";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "future-architect";
|
|
repo = "vuls";
|
|
tag = "v${version}";
|
|
hash = "sha256-6tpX8pZNKJXJv6ArwNWn9ih19LU3DNeBUXy9U/dHhVc=";
|
|
fetchSubmodules = true;
|
|
};
|
|
|
|
vendorHash = "sha256-vZMpQvEswcsfppZ5tIaI4fqrKkwbN53shefRyLR/Sg8=";
|
|
|
|
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";
|
|
};
|
|
}
|