grype: buildFlagsArray -> ldflags

This commit is contained in:
zowoq 2021-08-21 18:23:50 +10:00
parent 6661458324
commit 26ee35867b

View File

@ -19,9 +19,9 @@ buildGoModule rec {
propagatedBuildInputs = [ docker ];
preBuild = ''
buildFlagsArray+=("-ldflags" "-s -w -X github.com/anchore/grype/internal/version.version=${version}")
'';
ldflags = [
"-s" "-w" "-X github.com/anchore/grype/internal/version.version=${version}"
];
# Tests require a running Docker instance
doCheck = false;