pytrainer: unpin python 3.10
[NixPkgs.git] / pkgs / tools / admin / cf-vault / default.nix
blob0a5e805a51db17d573c8b402eff2c375f630d113
1 {buildGoModule, fetchFromGitHub, lib, testers, cf-vault}:
2 buildGoModule rec {
3   pname = "cf-vault";
4   version = "0.0.18";
6   src = fetchFromGitHub {
7     owner = "jacobbednarz";
8     repo = pname;
9     rev = version;
10     sha256 = "sha256-vp9ufjNZabY/ck2lIT+QpD6IgaVj1BkBRTjPxkb6IjQ=";
11   };
13   ldflags = [
14     "-s"
15     "-w"
16     "-X github.com/jacobbednarz/cf-vault/cmd.Rev=${version}"
17   ];
19   vendorHash = "sha256-7qFB1Y1AnqMgdu186tAXCdoYOhCMz8pIh6sY02LbIgs=";
21   passthru.tests.version = testers.testVersion {
22     package = cf-vault;
23     command = "cf-vault version";
24   };
26   meta = with lib; {
27     description = ''
28       A tool for managing your Cloudflare credentials, securely..
29     '';
30     homepage = "https://github.com/jacobbednarz/cf-vault/";
31     license = licenses.mit;
32     maintainers = with maintainers; [ viraptor ];
33     mainProgram = "cf-vault";
34   };