2024-04-21 15:54:59 +00:00
|
|
|
{buildGoModule, fetchFromGitHub, lib, testers, cf-vault}:
|
2022-03-05 16:20:37 +00:00
|
|
|
buildGoModule rec {
|
|
|
|
pname = "cf-vault";
|
2024-01-13 08:15:51 +00:00
|
|
|
version = "0.0.18";
|
2022-03-05 16:20:37 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "jacobbednarz";
|
|
|
|
repo = pname;
|
|
|
|
rev = version;
|
2024-01-13 08:15:51 +00:00
|
|
|
sha256 = "sha256-vp9ufjNZabY/ck2lIT+QpD6IgaVj1BkBRTjPxkb6IjQ=";
|
2022-03-05 16:20:37 +00:00
|
|
|
};
|
|
|
|
|
2024-04-21 15:54:59 +00:00
|
|
|
ldflags = [
|
|
|
|
"-s"
|
|
|
|
"-w"
|
|
|
|
"-X github.com/jacobbednarz/cf-vault/cmd.Rev=${version}"
|
|
|
|
];
|
|
|
|
|
2024-01-13 08:15:51 +00:00
|
|
|
vendorHash = "sha256-7qFB1Y1AnqMgdu186tAXCdoYOhCMz8pIh6sY02LbIgs=";
|
2022-03-05 16:20:37 +00:00
|
|
|
|
2024-04-21 15:54:59 +00:00
|
|
|
passthru.tests.version = testers.testVersion {
|
|
|
|
package = cf-vault;
|
|
|
|
command = "cf-vault version";
|
|
|
|
};
|
|
|
|
|
2022-03-05 16:20:37 +00:00
|
|
|
meta = with lib; {
|
|
|
|
description = ''
|
|
|
|
A tool for managing your Cloudflare credentials, securely..
|
|
|
|
'';
|
|
|
|
homepage = "https://github.com/jacobbednarz/cf-vault/";
|
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = with maintainers; [ viraptor ];
|
2024-02-29 20:09:43 +00:00
|
|
|
mainProgram = "cf-vault";
|
2022-03-05 16:20:37 +00:00
|
|
|
};
|
|
|
|
}
|