2023-10-09 19:29:22 +00:00
|
|
|
{ lib, fetchFromGitHub, crystal, openssl, testers, amqpcat }:
|
2023-03-04 12:14:45 +00:00
|
|
|
|
|
|
|
crystal.buildCrystalPackage rec {
|
|
|
|
pname = "amqpcat";
|
2024-05-15 15:35:15 +00:00
|
|
|
version = "1.0.0";
|
2023-03-04 12:14:45 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "cloudamqp";
|
|
|
|
repo = "amqpcat";
|
|
|
|
rev = "v${version}";
|
2024-05-15 15:35:15 +00:00
|
|
|
hash = "sha256-QLVFAcymj7dERbUiRcseiDuuKgrQ8n4LbkdhUyXPcWw=";
|
2023-03-04 12:14:45 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
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";
|
2024-04-21 15:54:59 +00:00
|
|
|
mainProgram = "amqpcat";
|
2023-03-04 12:14:45 +00:00
|
|
|
homepage = "https://github.com/cloudamqp/amqpcat";
|
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = with maintainers; [ aaronjheng ];
|
|
|
|
};
|
|
|
|
}
|