mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-24 07:53:19 +00:00
grype: set version
This commit is contained in:
parent
51be366f7e
commit
588da550f7
@ -1,7 +1,7 @@
|
||||
{ buildGoModule
|
||||
{ lib
|
||||
, buildGoModule
|
||||
, docker
|
||||
, fetchFromGitHub
|
||||
, lib
|
||||
}:
|
||||
|
||||
buildGoModule rec {
|
||||
@ -19,7 +19,11 @@ buildGoModule rec {
|
||||
|
||||
propagatedBuildInputs = [ docker ];
|
||||
|
||||
# tests require a running Docker instance
|
||||
preBuild = ''
|
||||
buildFlagsArray+=("-ldflags" "-s -w -X github.com/anchore/grype/internal/version.version=${version}")
|
||||
'';
|
||||
|
||||
# Tests require a running Docker instance
|
||||
doCheck = false;
|
||||
|
||||
meta = with lib; {
|
||||
|
Loading…
Reference in New Issue
Block a user