depot/third_party/nixpkgs/pkgs/development/tools/amqpcat/default.nix
Default email 5c370c0b2a Project import generated by Copybara.
GitOrigin-RevId: 33d1e753c82ffc557b4a585c77de43d4c922ebb5
2024-05-15 17:35:15 +02:00

33 lines
796 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 = "A 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 ];
};
}