3
0
Fork 0
forked from mirrors/nixpkgs

cmctl: init 1.7.1

This commit is contained in:
superherointj 2022-02-03 07:52:15 -03:00 committed by zowoq
parent c08df24d02
commit 6994e8ae17
2 changed files with 40 additions and 0 deletions

View file

@ -0,0 +1,38 @@
{ lib, buildGo117Module, fetchFromGitHub, installShellFiles }:
buildGo117Module rec {
pname = "cmctl";
version = "1.7.1";
src = fetchFromGitHub {
owner = "cert-manager";
repo = "cert-manager";
rev = "v${version}";
sha256 = "sha256-RO7YcGEfAQ9kTxfqgekYf6M5b6Fg64hCPLA/vt6IWp8=";
};
vendorSha256 = "sha256-4zhdpedOmLl/i1G0QCto4ACxguWRZLzOm5HfMBMtvPY=";
subPackages = [ "cmd/ctl" ];
ldflags = [ "-s" "-w" ];
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)
'';
meta = with lib; {
description = "A CLI tool for managing Cert-Manager service on Kubernetes clusters";
downloadPage = "https://github.com/cert-manager/cert-manager";
license = licenses.asl20;
homepage = "https://cert-manager.io/";
maintainers = with maintainers; [ superherointj ];
};
}

View file

@ -25017,6 +25017,8 @@ with pkgs;
cmatrix = callPackage ../applications/misc/cmatrix { };
cmctl = callPackage ../applications/networking/cluster/cmctl { };
cmus = callPackage ../applications/audio/cmus {
inherit (darwin.apple_sdk.frameworks) AudioUnit CoreAudio;
libjack = libjack2;