trivy: 0.16.0 -> 0.17.1
This commit is contained in:
parent
5dfc820648
commit
08b42d6aa7
1 changed files with 9 additions and 12 deletions
|
@ -2,27 +2,26 @@
|
|||
|
||||
buildGoModule rec {
|
||||
pname = "trivy";
|
||||
version = "0.16.0";
|
||||
version = "0.17.1";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "aquasecurity";
|
||||
repo = pname;
|
||||
rev = "v${version}";
|
||||
sha256 = "sha256-E/tPjVc+XLDCFYzloAipwWjB4I86kAe/6NVoJSCrY2M=";
|
||||
sha256 = "sha256-5TOKYxH1Tnsd1t2yoUflFUSW0QGS9l5+0JtS2Fo6vL0=";
|
||||
};
|
||||
|
||||
vendorSha256 = "sha256-YoQF0Eug747LhsR3V0IplwXgm0ndDqK1pUVjguOhjOU=";
|
||||
vendorSha256 = "sha256-zVe1bTTLOHxfdbb6VcztOCWMbCbzT6igNpvPytktMWs=";
|
||||
|
||||
subPackages = [ "cmd/trivy" ];
|
||||
excludedPackages = "misc";
|
||||
|
||||
buildFlagsArray = [
|
||||
"-ldflags="
|
||||
"-s"
|
||||
"-w"
|
||||
"-X main.version=v${version}"
|
||||
];
|
||||
preBuild = ''
|
||||
buildFlagsArray+=("-ldflags" "-s -w -X main.version=v${version}")
|
||||
'';
|
||||
|
||||
meta = with lib; {
|
||||
homepage = "https://github.com/aquasecurity/trivy";
|
||||
changelog = "https://github.com/aquasecurity/trivy/releases/tag/v${version}";
|
||||
description = "A simple and comprehensive vulnerability scanner for containers, suitable for CI";
|
||||
longDescription = ''
|
||||
Trivy is a simple and comprehensive vulnerability scanner for containers
|
||||
|
@ -31,8 +30,6 @@ buildGoModule rec {
|
|||
vulnerabilities of OS packages (Alpine, RHEL, CentOS, etc.) and
|
||||
application dependencies (Bundler, Composer, npm, yarn, etc.).
|
||||
'';
|
||||
homepage = src.meta.homepage;
|
||||
changelog = "${src.meta.homepage}/releases/tag/v${version}";
|
||||
license = licenses.asl20;
|
||||
maintainers = with maintainers; [ jk ];
|
||||
};
|
||||
|
|
Loading…
Reference in a new issue