Luke Granger-Brown
57725ef3ec
git-subtree-dir: third_party/nixpkgs git-subtree-split: 76612b17c0ce71689921ca12d9ffdc9c23ce40b2
35 lines
862 B
Nix
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";
|
|
};
|
|
}
|