depot/third_party/nixpkgs/pkgs/development/tools/amqpcat/default.nix
Default email bcb2f287e1 Project import generated by Copybara.
GitOrigin-RevId: d603719ec6e294f034936c0d0dc06f689d91b6c3
2024-06-20 20:27:18 +05:30

33 lines
794 B
Nix

{ lib, fetchFromGitHub, crystal, openssl, testers, amqpcat }:
crystal.buildCrystalPackage rec {
pname = "amqpcat";
version = "1.0.0";
src = fetchFromGitHub {
owner = "cloudamqp";
repo = "amqpcat";
rev = "v${version}";
hash = "sha256-QLVFAcymj7dERbUiRcseiDuuKgrQ8n4LbkdhUyXPcWw=";
};
format = "shards";
shardsFile = ./shards.nix;
buildInputs = [ openssl ];
# Tests require network access
doCheck = false;
passthru.tests.version = testers.testVersion {
package = amqpcat;
};
meta = with lib; {
description = "CLI tool for publishing to and consuming from AMQP servers";
mainProgram = "amqpcat";
homepage = "https://github.com/cloudamqp/amqpcat";
license = licenses.mit;
maintainers = with maintainers; [ aaronjheng ];
};
}