nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1{
2 lib,
3 buildGoModule,
4 fetchFromGitHub,
5}:
6
7let
8 version = "0.7.2";
9in
10buildGoModule {
11 pname = "vault-unseal";
12 inherit version;
13
14 src = fetchFromGitHub {
15 owner = "lrstanley";
16 repo = "vault-unseal";
17 rev = "v${version}";
18 hash = "sha256-xv33wx/JjvpL9ryyWeZde+a6UPWqYXQcsAxOzmHFAyo=";
19 };
20
21 vendorHash = "sha256-hhTJB1g35vB5dLOEY7V7V5ma7Zzyq2bo9kk3gpEcEsY=";
22
23 meta = {
24 changelog = "https://github.com/lrstanley/vault-unseal/releases/tag/v${version}";
25 description = "Auto-unseal utility for Hashicorp Vault";
26 homepage = "https://github.com/lrstanley/vault-unseal";
27 license = lib.licenses.mit;
28 mainProgram = "vault-unseal";
29 maintainers = with lib.maintainers; [ mjm ];
30 };
31}