mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-12 08:43:06 +00:00
34 lines
796 B
Nix
34 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 ];
|
|
};
|
|
}
|