Skip to content

Commit b5cd423

Browse files
authored
vuls: init at 0.27.0 (#348530)
2 parents 2f6f795 + 14684ed commit b5cd423

File tree

2 files changed

+44
-0
lines changed

2 files changed

+44
-0
lines changed

pkgs/by-name/vu/vuls/package.nix

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
{
2+
lib,
3+
buildGoModule,
4+
fetchFromGitHub,
5+
}:
6+
7+
buildGoModule rec {
8+
pname = "vuls";
9+
version = "0.27.0";
10+
11+
src = fetchFromGitHub {
12+
owner = "future-architect";
13+
repo = "vuls";
14+
rev = "refs/tags/v${version}";
15+
hash = "sha256-+KEcK9GLx1QErRQlSVGeFnvYoWY3lVFr7S4Zb34Djzo=";
16+
fetchSubmodules = true;
17+
};
18+
19+
vendorHash = "sha256-XTKPsXCOzrji3qq+L4NR8FLBnXcafLj8w3K+UwowLQU=";
20+
21+
ldflags = [
22+
"-s"
23+
"-w"
24+
"-X=github.com/future-architect/vuls/config.Version=${version}"
25+
"-X=github.com/future-architect/vuls/config.Revision=${src.rev}-1970-01-01T00:00:00Z"
26+
];
27+
28+
postFixup = ''
29+
mv $out/bin/cmd $out/bin/trivy-to-vuls
30+
'';
31+
32+
meta = {
33+
description = "Agent-less vulnerability scanner";
34+
homepage = "https://github.com/future-architect/vuls";
35+
changelog = "https://github.com/future-architect/vuls/blob/${src.rev}/CHANGELOG.md";
36+
license = lib.licenses.gpl3Only;
37+
maintainers = with lib.maintainers; [ fab ];
38+
mainProgram = "vuls";
39+
};
40+
}

pkgs/top-level/all-packages.nix

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13641,6 +13641,10 @@ with pkgs;
1364113641

1364213642
vul = callPackage ../applications/misc/vul { };
1364313643

13644+
vuls = callPackage ../by-name/vu/vuls/package.nix {
13645+
buildGoModule = buildGo123Module;
13646+
};
13647+
1364413648
xarchive = callPackage ../tools/archivers/xarchive { };
1364513649

1364613650
xarchiver = callPackage ../tools/archivers/xarchiver { };

0 commit comments

Comments
 (0)