summary refs log tree commit diff
path: root/pkgs/tools/admin/zbctl
diff options
context:
space:
mode:
authorJeroen Jetten <jeroen.jetten@camunda.com>2022-09-07 11:46:07 +0200
committerJeroen Jetten <jeroen.jetten@camunda.com>2022-09-16 09:31:58 +0200
commitde5fe798a8c5fffabde42b80a10250002086ac5c (patch)
tree1f3cd318dcbb8c9e41e3af7d9fa056586887acfa /pkgs/tools/admin/zbctl
parentae4ff7f847364882aedc312ad93374f25b457323 (diff)
downloadnixpkgs-de5fe798a8c5fffabde42b80a10250002086ac5c.tar
nixpkgs-de5fe798a8c5fffabde42b80a10250002086ac5c.tar.gz
nixpkgs-de5fe798a8c5fffabde42b80a10250002086ac5c.tar.bz2
nixpkgs-de5fe798a8c5fffabde42b80a10250002086ac5c.tar.lz
nixpkgs-de5fe798a8c5fffabde42b80a10250002086ac5c.tar.xz
nixpkgs-de5fe798a8c5fffabde42b80a10250002086ac5c.tar.zst
nixpkgs-de5fe798a8c5fffabde42b80a10250002086ac5c.zip
zbctl: init at 8.0.6
Diffstat (limited to 'pkgs/tools/admin/zbctl')
-rw-r--r--pkgs/tools/admin/zbctl/default.nix49
1 files changed, 49 insertions, 0 deletions
diff --git a/pkgs/tools/admin/zbctl/default.nix b/pkgs/tools/admin/zbctl/default.nix
new file mode 100644
index 00000000000..fb4c76f6a47
--- /dev/null
+++ b/pkgs/tools/admin/zbctl/default.nix
@@ -0,0 +1,49 @@
+{ lib
+, stdenvNoCC
+, fetchurl
+}:
+
+stdenvNoCC.mkDerivation rec {
+  pname = "zbctl";
+  version = "8.0.6";
+
+  src = if stdenvNoCC.hostPlatform.system == "x86_64-darwin" then fetchurl {
+    url = "https://github.com/camunda/zeebe/releases/download/${version}/zbctl.darwin";
+    sha256 = "17hfjrcr6lmw91jq24nbw5yz61x6larmx39lyfj6pwlz0710y13p";
+  } else if stdenvNoCC.hostPlatform.system == "x86_64-linux" then fetchurl {
+    url = "https://github.com/camunda/zeebe/releases/download/${version}/zbctl";
+    sha256 = "1xng11x7wcjvc0vipdrqyn97aa4jlgcp7g9aw4d36fw0xp9p47kp";
+  } else throw "Unsupported platform ${stdenvNoCC.hostPlatform.system}";
+
+  dontUnpack = true;
+  dontConfigure = true;
+  dontBuild = true;
+
+  installPhase = ''
+    runHook preInstall
+    mkdir -p $out/bin
+    cp $src $out/bin/zbctl
+    chmod +x $out/bin/zbctl
+    runHook postInstall
+  '';
+
+  meta = with lib; {
+    description = "The command line interface to interact with Camunda 8 and Zeebe";
+    homepage = "https://docs.camunda.io/docs/apis-clients/cli-client/";
+    downloadPage = "https://github.com/camunda/zeebe/releases";
+    changelog = "https://github.com/camunda/zeebe/releases/tag/${version}";
+    sourceProvenance = with sourceTypes; [ binaryNativeCode ];
+    license = licenses.asl20;
+    platforms = [ "x86_64-darwin" "x86_64-linux" ];
+    maintainers = with maintainers; [ thetallestjj ];
+    longDescription = ''
+      A command line interface for Camunda Platform 8 designed to create and read resources inside a Zeebe broker.
+      It can be used for regular development and maintenance tasks such as:
+      * Deploying processes
+      * Creating process instances and job workers
+      * Activating, completing, or failing jobs
+      * Updating variables and retries
+      * Viewing cluster status
+    '';
+  };
+}