mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-30 17:43:42 +00:00
56 lines
1.9 KiB
Nix
56 lines
1.9 KiB
Nix
{ lib, buildGoModule, fetchFromGitHub, installShellFiles }:
|
|
|
|
buildGoModule rec {
|
|
pname = "cmctl";
|
|
version = "1.11.2";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "cert-manager";
|
|
repo = "cert-manager";
|
|
rev = "4767427a40e0e193c976fd6bc228f50de8950572";
|
|
sha256 = "128s5vd4hp5mr0rnb21grzmijzx0ibpv71as36dcgw7z4v3gq7lx";
|
|
};
|
|
|
|
vendorSha256 = "sha256-+r0QpD97r6dokUr07Qjb9kvoK+oz2rvml0cIebtYuHg=";
|
|
|
|
subPackages = [ "cmd/ctl" ];
|
|
|
|
ldflags = [
|
|
"-s" "-w"
|
|
"-X github.com/cert-manager/cert-manager/cmd/ctl/pkg/build.name=cmctl"
|
|
"-X github.com/cert-manager/cert-manager/cmd/ctl/pkg/build/commands.registerCompletion=true"
|
|
"-X github.com/cert-manager/cert-manager/pkg/util.AppVersion=v${version}"
|
|
"-X github.com/cert-manager/cert-manager/pkg/util.AppGitCommit=${src.rev}"
|
|
];
|
|
|
|
nativeBuildInputs = [ installShellFiles ];
|
|
|
|
postInstall = ''
|
|
mv $out/bin/ctl $out/bin/cmctl
|
|
installShellCompletion --cmd cmctl \
|
|
--bash <($out/bin/cmctl completion bash) \
|
|
--fish <($out/bin/cmctl completion fish) \
|
|
--zsh <($out/bin/cmctl completion zsh)
|
|
'';
|
|
|
|
passthru.updateScript = ./update.sh;
|
|
|
|
meta = with lib; {
|
|
description = "A CLI tool for managing cert-manager service on Kubernetes clusters";
|
|
longDescription = ''
|
|
cert-manager adds certificates and certificate issuers as resource types
|
|
in Kubernetes clusters, and simplifies the process of obtaining, renewing
|
|
and using those certificates.
|
|
|
|
It can issue certificates from a variety of supported sources, including
|
|
Let's Encrypt, HashiCorp Vault, and Venafi as well as private PKI, and it
|
|
ensures certificates remain valid and up to date, attempting to renew
|
|
certificates at an appropriate time before expiry.
|
|
'';
|
|
downloadPage = "https://github.com/cert-manager/cert-manager";
|
|
license = licenses.asl20;
|
|
homepage = "https://cert-manager.io/";
|
|
maintainers = with maintainers; [ joshvanl ];
|
|
};
|
|
}
|