step-cli: add ldflags for version
This commit is contained in:
parent
a7ce1485c5
commit
c1ed4a4d07
1 changed files with 7 additions and 0 deletions
|
@ -14,10 +14,17 @@ buildGoModule rec {
|
|||
sha256 = "sha256-gMXvHPqWvaZmzWiWrxlknaMkUraS64yrKl+RzAF7c4I=";
|
||||
};
|
||||
|
||||
ldflags = [
|
||||
"-w"
|
||||
"-s"
|
||||
"-X main.Version=${version}"
|
||||
];
|
||||
|
||||
preCheck = ''
|
||||
# Tries to connect to smallstep.com
|
||||
rm command/certificate/remote_test.go
|
||||
'';
|
||||
|
||||
vendorSha256 = "sha256-WF2UD0LwzCMkoW1EfcjV+9ZboPp1oWhmsSEryj13Kg0=";
|
||||
|
||||
meta = with lib; {
|
||||
|
|
Loading…
Reference in a new issue