Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
41 lines
984 B
Nix
41 lines
984 B
Nix
{
|
|
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";
|
|
};
|
|
}
|