2022-03-06 16:52:47 +00:00
|
|
|
|
|
|
|
# SPDX-FileCopyrightText: 2020 Luke Granger-Brown <depot@lukegb.com>
|
|
|
|
#
|
|
|
|
# SPDX-License-Identifier: Apache-2.0
|
|
|
|
|
|
|
|
{ lib
|
|
|
|
, buildGoModule
|
|
|
|
, fetchFromGitHub
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildGoModule rec {
|
|
|
|
pname = "vault-acme";
|
2022-03-06 23:01:51 +00:00
|
|
|
version = "0.0.8+lukegb-1";
|
2022-03-06 16:52:47 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
2022-03-06 23:01:51 +00:00
|
|
|
owner = "lukegb";
|
2022-03-06 16:52:47 +00:00
|
|
|
repo = pname;
|
2022-08-10 00:51:46 +00:00
|
|
|
rev = "d128cded9a4f96b0c6784f13c6ff6d077f6688da";
|
|
|
|
sha256 = "sha256:0yp8nmzp0cfqxh0r6qls0mwz9myaskb3q5qwcwx6gcm2wrwidi84";
|
2022-03-06 16:52:47 +00:00
|
|
|
};
|
|
|
|
|
2022-03-17 01:03:41 +00:00
|
|
|
patches = [ ./just-add-a-sleep.patch ];
|
|
|
|
|
2022-04-21 00:49:46 +00:00
|
|
|
vendorSha256 = "sha256:1c58470n843yh9jd010xxaqzg9lrpaw9w969ygqb6h3x8k1my7jp";
|
2022-03-06 16:52:47 +00:00
|
|
|
|
|
|
|
subPackages = [
|
|
|
|
"cmd/acme"
|
|
|
|
"cmd/sidecar"
|
|
|
|
];
|
|
|
|
|
|
|
|
postInstall = ''
|
|
|
|
mkdir -p $out/libexec/vault
|
|
|
|
mv $out/bin/acme $out/libexec/vault/acme
|
|
|
|
mv $out/bin/sidecar $out/bin/vault-acme-sidecar
|
|
|
|
'';
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Vault secret engine to retrieve TLS certificates from an ACME provider";
|
|
|
|
homepage = "https://github.com/remilapeyre/vault-acme";
|
|
|
|
license = licenses.mpl20;
|
|
|
|
maintainers = with maintainers; [ lukegb ];
|
|
|
|
platforms = platforms.linux ++ platforms.darwin;
|
|
|
|
};
|
|
|
|
}
|