diff options
author | Stanisław Pitucha <git@viraptor.info> | 2024-03-27 16:22:55 +1100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-03-27 16:22:55 +1100 |
commit | 37f3e67926381c8fc90f4b304e79a3634925222b (patch) | |
tree | 5571e9ead7cbbf6f93102fb2871017134d7cb25a | |
parent | 6593c00cee7145f1b190c64b074d34840da33756 (diff) | |
parent | 2fc5edd27bc9cf9655e11581eb95a4ec3a94f5a7 (diff) |
Merge pull request #299410 from viraptor/cf-vault-version
cf-vault: add version string
-rw-r--r-- | pkgs/tools/admin/cf-vault/default.nix | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/pkgs/tools/admin/cf-vault/default.nix b/pkgs/tools/admin/cf-vault/default.nix index 877e4d56d09c8..0a5e805a51db1 100644 --- a/pkgs/tools/admin/cf-vault/default.nix +++ b/pkgs/tools/admin/cf-vault/default.nix @@ -1,4 +1,4 @@ -{buildGoModule, fetchFromGitHub, lib}: +{buildGoModule, fetchFromGitHub, lib, testers, cf-vault}: buildGoModule rec { pname = "cf-vault"; version = "0.0.18"; @@ -10,8 +10,19 @@ buildGoModule rec { sha256 = "sha256-vp9ufjNZabY/ck2lIT+QpD6IgaVj1BkBRTjPxkb6IjQ="; }; + ldflags = [ + "-s" + "-w" + "-X github.com/jacobbednarz/cf-vault/cmd.Rev=${version}" + ]; + vendorHash = "sha256-7qFB1Y1AnqMgdu186tAXCdoYOhCMz8pIh6sY02LbIgs="; + passthru.tests.version = testers.testVersion { + package = cf-vault; + command = "cf-vault version"; + }; + meta = with lib; { description = '' A tool for managing your Cloudflare credentials, securely.. |