Files

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

41 lines
984 B
Nix
Raw Permalink Normal View History

2025-10-09 14:15:47 +02:00
{
lib,
buildGo124Module,
fetchFromGitHub,
}:
buildGo124Module rec {
pname = "vuls";
version = "0.35.1";
src = fetchFromGitHub {
owner = "future-architect";
repo = "vuls";
tag = "v${version}";
hash = "sha256-bgeg5y1wFYDXr2M4yNNWbgKJhtdoUZJRPxpniAXCyRU=";
fetchSubmodules = true;
};
vendorHash = "sha256-DUkF1iqofgO9o34owkvQRkV+e7fA0VmeUz1VOPMiZIs=";
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";
};
}