diff options
author | Aleksana <me@aleksana.moe> | 2024-05-19 22:12:11 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-05-19 22:12:11 +0800 |
commit | f1f4eb1e363ebe6c006dd64581333199b6aeab54 (patch) | |
tree | 670962224cb99f34510db3c061cf3f4f51abd331 /pkgs/tools | |
parent | 8a2555763c48e2410054de3f52f7310ce3241ec5 (diff) | |
parent | 52743c88f5af69d2f64a5de6c7144a2aae76098b (diff) |
Merge pull request #312626 from jpds/step-ldflags-version
step-ca: Set version in ldflags so this is correctly displayed in startup
Diffstat (limited to 'pkgs/tools')
-rw-r--r-- | pkgs/tools/security/step-ca/default.nix | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/pkgs/tools/security/step-ca/default.nix b/pkgs/tools/security/step-ca/default.nix index 72f80c3c79eac..1b227b3cdfdf1 100644 --- a/pkgs/tools/security/step-ca/default.nix +++ b/pkgs/tools/security/step-ca/default.nix @@ -24,6 +24,11 @@ buildGoModule rec { vendorHash = "sha256-XlfdIg8YHCeCvc7kZczUxlxUonyZSQATgsxLTMvNDk4="; + ldflags = [ + "-w" + "-X main.Version=${version}" + ]; + nativeBuildInputs = lib.optionals hsmSupport [ pkg-config ]; buildInputs = |