File tree Expand file tree Collapse file tree 2 files changed +44
-0
lines changed Expand file tree Collapse file tree 2 files changed +44
-0
lines changed Original file line number Diff line number Diff line change 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+ }
Original file line number Diff line number Diff 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 { };
You can’t perform that action at this time.
0 commit comments