summary refs log tree commit diff
path: root/pkgs/applications/networking
diff options
context:
space:
mode:
authorsuperherointj <5861043+superherointj@users.noreply.github.com>2022-02-03 07:52:15 -0300
committerzowoq <59103226+zowoq@users.noreply.github.com>2022-02-05 09:10:46 +1000
commit6994e8ae17182ff71127a053fc71c6fa21352bc1 (patch)
treeb8fa17d74bcbe81d52ad59149cb21f9ab7cde242 /pkgs/applications/networking
parentc08df24d0256e9d01bd41cdb69363dd2b07006c9 (diff)
downloadnixpkgs-6994e8ae17182ff71127a053fc71c6fa21352bc1.tar
nixpkgs-6994e8ae17182ff71127a053fc71c6fa21352bc1.tar.gz
nixpkgs-6994e8ae17182ff71127a053fc71c6fa21352bc1.tar.bz2
nixpkgs-6994e8ae17182ff71127a053fc71c6fa21352bc1.tar.lz
nixpkgs-6994e8ae17182ff71127a053fc71c6fa21352bc1.tar.xz
nixpkgs-6994e8ae17182ff71127a053fc71c6fa21352bc1.tar.zst
nixpkgs-6994e8ae17182ff71127a053fc71c6fa21352bc1.zip
cmctl: init 1.7.1
Diffstat (limited to 'pkgs/applications/networking')
-rw-r--r--pkgs/applications/networking/cluster/cmctl/default.nix38
1 files changed, 38 insertions, 0 deletions
diff --git a/pkgs/applications/networking/cluster/cmctl/default.nix b/pkgs/applications/networking/cluster/cmctl/default.nix
new file mode 100644
index 00000000000..002ef8a3bc8
--- /dev/null
+++ b/pkgs/applications/networking/cluster/cmctl/default.nix
@@ -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 ];
+  };
+}
+