depot/third_party/nixpkgs/pkgs/by-name/am/amqpcat/package.nix
Default email 555cd8a8f9 Project import generated by Copybara.
GitOrigin-RevId: 5633bcff0c6162b9e4b5f1264264611e950c8ec7
2024-10-09 18:51:18 +02:00

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 ];
};
}