about summary refs log tree commit diff
path: root/nixpkgs/pkgs/development/tools/amqpcat/default.nix
blob: a7c30cc9e4b6dcabd4c0cbc82f4808e42fdcd332 (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
{ stdenv, lib, fetchFromGitHub, crystal, openssl, testers, amqpcat }:

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

  src = fetchFromGitHub {
    owner = "cloudamqp";
    repo = "amqpcat";
    rev = "v${version}";
    hash = "sha256-Ec8LlOYYp3fXYgvps/ikeB4MqBEXTw1BAF5nJyL7dI0=";
  };

  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";
    homepage = "https://github.com/cloudamqp/amqpcat";
    license = licenses.mit;
    maintainers = with maintainers; [ aaronjheng ];
    broken = stdenv.isDarwin; # Linking errors. Hope someone can help fix it.
  };
}