diff options
author | Fabian Affolter <mail@fabian-affolter.ch> | 2021-07-16 20:53:55 +0200 |
---|---|---|
committer | Fabian Affolter <mail@fabian-affolter.ch> | 2021-07-16 20:53:55 +0200 |
commit | c1ed4a4d07231d5c687019986cfa9c7f4bed1296 (patch) | |
tree | a9aba6ebf7a1322a56dbc3ff287e70b0eb089983 /pkgs/tools/security/step-cli | |
parent | a7ce1485c5b6fe9db172f347c81fa30ed3138c3d (diff) |
step-cli: add ldflags for version
Diffstat (limited to 'pkgs/tools/security/step-cli')
-rw-r--r-- | pkgs/tools/security/step-cli/default.nix | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/pkgs/tools/security/step-cli/default.nix b/pkgs/tools/security/step-cli/default.nix index 413e331f09583..c91a83c0a0d71 100644 --- a/pkgs/tools/security/step-cli/default.nix +++ b/pkgs/tools/security/step-cli/default.nix @@ -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; { |