cf-vault: add version string
This commit is contained in:
parent
1b4adc1773
commit
2fc5edd27b
@ -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..
|
||||
|
Loading…
Reference in New Issue
Block a user