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