about summary refs log tree commit diff
path: root/nixpkgs/pkgs/development/tools/amqpcat/default.nix
blob: 09094fae8e10bef0b24bd0878bd741ce55d188ba (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
{ lib, fetchFromGitHub, crystal, openssl, testers, amqpcat }:

crystal.buildCrystalPackage rec {
  pname = "amqpcat";
  version = "0.2.5";

  src = fetchFromGitHub {
    owner = "cloudamqp";
    repo = "amqpcat";
    rev = "v${version}";
    hash = "sha256-AXX4aF5717lSIO0/2jNDPXXLtM/h//BlxO+cX71aWG4=";
  };

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