Skip to content

Commit

Permalink
trivy: adjust ldflags
Browse files Browse the repository at this point in the history
  • Loading branch information
fabaff committed Sep 19, 2024
1 parent 9728fcc commit 0ad3670
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions pkgs/tools/admin/trivy/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ buildGoModule rec {
ldflags = [
"-s"
"-w"
"-X=github.com/aquasecurity/trivy/pkg/version.ver=v${version}"
"-X=github.com/aquasecurity/trivy/pkg/version/app.ver=${version}"
];

nativeBuildInputs = [ installShellFiles ];
Expand Down Expand Up @@ -58,13 +58,13 @@ buildGoModule rec {
passthru.tests.version = testers.testVersion {
package = trivy;
command = "trivy --version";
version = "Version: v${version}";
version = "Version: ${version}";
};

meta = with lib; {
description = "Simple and comprehensive vulnerability scanner for containers, suitable for CI";
homepage = "https://github.com/aquasecurity/trivy";
changelog = "https://github.com/aquasecurity/trivy/releases/tag/v${version}";
description = "Simple and comprehensive vulnerability scanner for containers, suitable for CI";
longDescription = ''
Trivy is a simple and comprehensive vulnerability scanner for containers
and other artifacts. A software vulnerability is a glitch, flaw, or
Expand Down

0 comments on commit 0ad3670

Please sign in to comment.