Merge pull request #252934 from fabaff/trivy-bump

trivy: 0.44.1 -> 0.45.0

authored by

Fabian Affolter and committed by
GitHub
c2f3ec47 84f49c57

+11 -10
+11 -10
pkgs/tools/admin/trivy/default.nix
··· 1 { lib 2 , buildGoModule 3 , fetchFromGitHub 4 }: 5 6 buildGoModule rec { 7 pname = "trivy"; 8 - version = "0.44.1"; 9 10 src = fetchFromGitHub { 11 owner = "aquasecurity"; 12 repo = pname; 13 rev = "refs/tags/v${version}"; 14 - hash = "sha256-zSrXfSG9GXReJ+XRx7FTBZovSvNq725zzWMje3maTx4="; 15 }; 16 17 - # hash missmatch on across linux and darwin 18 proxyVendor = true; 19 20 - vendorHash = "sha256-CEr8UvQtKZo5jahLeLx3RYT592i6SwwNLRA4IRD0mYU="; 21 22 subPackages = [ "cmd/trivy" ]; 23 ··· 32 33 doInstallCheck = true; 34 35 - installCheckPhase = '' 36 - runHook preInstallCheck 37 - $out/bin/trivy --help 38 - $out/bin/trivy --version | grep "v${version}" 39 - runHook postInstallCheck 40 - ''; 41 42 meta = with lib; { 43 homepage = "https://github.com/aquasecurity/trivy";
··· 1 { lib 2 , buildGoModule 3 , fetchFromGitHub 4 + , testers 5 + , trivy 6 }: 7 8 buildGoModule rec { 9 pname = "trivy"; 10 + version = "0.45.0"; 11 12 src = fetchFromGitHub { 13 owner = "aquasecurity"; 14 repo = pname; 15 rev = "refs/tags/v${version}"; 16 + hash = "sha256-HsxcB3X8/n4Y8sU7im1nEGqMK9bVlhq5ZiF9gG+3YFs="; 17 }; 18 19 + # Hash mismatch on across Linux and Darwin 20 proxyVendor = true; 21 22 + vendorHash = "sha256-rlMhmgnqvkKttfIzVMi1Ca/dqOdkoCF9yZbEcr8sv5I="; 23 24 subPackages = [ "cmd/trivy" ]; 25 ··· 34 35 doInstallCheck = true; 36 37 + passthru.tests.version = testers.testVersion { 38 + package = trivy; 39 + command = "trivy --version"; 40 + version = "v${version}"; 41 + }; 42 43 meta = with lib; { 44 homepage = "https://github.com/aquasecurity/trivy";