about summary refs log tree commit diff
path: root/pkgs/development/tools/amqpcat/default.nix
diff options
context:
space:
mode:
Diffstat (limited to 'pkgs/development/tools/amqpcat/default.nix')
-rw-r--r--pkgs/development/tools/amqpcat/default.nix33
1 files changed, 33 insertions, 0 deletions
diff --git a/pkgs/development/tools/amqpcat/default.nix b/pkgs/development/tools/amqpcat/default.nix
new file mode 100644
index 0000000000000..a7c30cc9e4b6d
--- /dev/null
+++ b/pkgs/development/tools/amqpcat/default.nix
@@ -0,0 +1,33 @@
+{ stdenv, lib, fetchFromGitHub, crystal, openssl, testers, amqpcat }:
+
+crystal.buildCrystalPackage rec {
+  pname = "amqpcat";
+  version = "0.2.4";
+
+  src = fetchFromGitHub {
+    owner = "cloudamqp";
+    repo = "amqpcat";
+    rev = "v${version}";
+    hash = "sha256-Ec8LlOYYp3fXYgvps/ikeB4MqBEXTw1BAF5nJyL7dI0=";
+  };
+
+  format = "shards";
+  shardsFile = ./shards.nix;
+
+  buildInputs = [ openssl ];
+
+  # Tests require network access
+  doCheck = false;
+
+  passthru.tests.version = testers.testVersion {
+    package = amqpcat;
+  };
+
+  meta = with lib; {
+    description = "A CLI tool for publishing to and consuming from AMQP servers";
+    homepage = "https://github.com/cloudamqp/amqpcat";
+    license = licenses.mit;
+    maintainers = with maintainers; [ aaronjheng ];
+    broken = stdenv.isDarwin; # Linking errors. Hope someone can help fix it.
+  };
+}