depot/pkgs/by-name/vu/vuls/package.nix
Luke Granger-Brown 57725ef3ec Squashed 'third_party/nixpkgs/' content from commit 76612b17c0ce
git-subtree-dir: third_party/nixpkgs
git-subtree-split: 76612b17c0ce71689921ca12d9ffdc9c23ce40b2
2024-11-10 23:59:47 +00:00

40 lines
988 B
Nix

{
lib,
buildGoModule,
fetchFromGitHub,
}:
buildGoModule rec {
pname = "vuls";
version = "0.27.0";
src = fetchFromGitHub {
owner = "future-architect";
repo = "vuls";
rev = "refs/tags/v${version}";
hash = "sha256-+KEcK9GLx1QErRQlSVGeFnvYoWY3lVFr7S4Zb34Djzo=";
fetchSubmodules = true;
};
vendorHash = "sha256-XTKPsXCOzrji3qq+L4NR8FLBnXcafLj8w3K+UwowLQU=";
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";
};
}