nixpkgs/pkgs/development/tools/amqpcat/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

34 lines
796 B
Nix
Raw Normal View History

2023-09-23 04:45:25 +00:00
{ lib, fetchFromGitHub, crystal, openssl, testers, amqpcat }:
2023-02-20 12:17:41 +00:00
crystal.buildCrystalPackage rec {
pname = "amqpcat";
2024-04-22 08:32:12 +00:00
version = "1.0.0";
2023-02-20 12:17:41 +00:00
src = fetchFromGitHub {
owner = "cloudamqp";
repo = "amqpcat";
rev = "v${version}";
2024-04-22 08:32:12 +00:00
hash = "sha256-QLVFAcymj7dERbUiRcseiDuuKgrQ8n4LbkdhUyXPcWw=";
2023-02-20 12:17:41 +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";
mainProgram = "amqpcat";
2023-02-20 12:17:41 +00:00
homepage = "https://github.com/cloudamqp/amqpcat";
license = licenses.mit;
maintainers = with maintainers; [ aaronjheng ];
};
}