mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-11-12 03:56:17 +03:00
grype: buildFlagsArray -> ldflags
This commit is contained in:
parent
6661458324
commit
26ee35867b
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user