depot/third_party/nixpkgs/pkgs/tools/admin/cf-vault/default.nix
Default email 587713944a Project import generated by Copybara.
GitOrigin-RevId: 6143fc5eeb9c4f00163267708e26191d1e918932
2024-04-21 17:54:59 +02:00

35 lines
862 B
Nix

{buildGoModule, fetchFromGitHub, lib, testers, cf-vault}:
buildGoModule rec {
pname = "cf-vault";
version = "0.0.18";
src = fetchFromGitHub {
owner = "jacobbednarz";
repo = pname;
rev = version;
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..
'';
homepage = "https://github.com/jacobbednarz/cf-vault/";
license = licenses.mit;
maintainers = with maintainers; [ viraptor ];
mainProgram = "cf-vault";
};
}