mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-02-22 12:04:40 +00:00
trivy: 0.17.1 -> 0.17.2
This commit is contained in:
parent
c576998594
commit
06afddb989
@ -2,16 +2,16 @@
|
|||||||
|
|
||||||
buildGoModule rec {
|
buildGoModule rec {
|
||||||
pname = "trivy";
|
pname = "trivy";
|
||||||
version = "0.17.1";
|
version = "0.17.2";
|
||||||
|
|
||||||
src = fetchFromGitHub {
|
src = fetchFromGitHub {
|
||||||
owner = "aquasecurity";
|
owner = "aquasecurity";
|
||||||
repo = pname;
|
repo = pname;
|
||||||
rev = "v${version}";
|
rev = "v${version}";
|
||||||
sha256 = "sha256-5TOKYxH1Tnsd1t2yoUflFUSW0QGS9l5+0JtS2Fo6vL0=";
|
sha256 = "sha256-Ub3rIiOJUh3vNCC+82rCSzKSovMnRW2jo8HbI02ouws=";
|
||||||
};
|
};
|
||||||
|
|
||||||
vendorSha256 = "sha256-zVe1bTTLOHxfdbb6VcztOCWMbCbzT6igNpvPytktMWs=";
|
vendorSha256 = "sha256-xL0wqKFMQksaLkTAxV72SWh0PPTbOqWcd6deJ9RVeEA=";
|
||||||
|
|
||||||
excludedPackages = "misc";
|
excludedPackages = "misc";
|
||||||
|
|
||||||
@ -19,6 +19,14 @@ buildGoModule rec {
|
|||||||
buildFlagsArray+=("-ldflags" "-s -w -X main.version=v${version}")
|
buildFlagsArray+=("-ldflags" "-s -w -X main.version=v${version}")
|
||||||
'';
|
'';
|
||||||
|
|
||||||
|
doInstallCheck = true;
|
||||||
|
installCheckPhase = ''
|
||||||
|
runHook preInstallCheck
|
||||||
|
$out/bin/trivy --help
|
||||||
|
$out/bin/trivy --version | grep "v${version}"
|
||||||
|
runHook postInstallCheck
|
||||||
|
'';
|
||||||
|
|
||||||
meta = with lib; {
|
meta = with lib; {
|
||||||
homepage = "https://github.com/aquasecurity/trivy";
|
homepage = "https://github.com/aquasecurity/trivy";
|
||||||
changelog = "https://github.com/aquasecurity/trivy/releases/tag/v${version}";
|
changelog = "https://github.com/aquasecurity/trivy/releases/tag/v${version}";
|
||||||
|
Loading…
Reference in New Issue
Block a user