40 lines
1.1 KiB
Nix
40 lines
1.1 KiB
Nix
{
|
|
lib,
|
|
buildDunePackage,
|
|
fetchFromGitHub,
|
|
version ? "2.3.0",
|
|
}:
|
|
|
|
buildDunePackage {
|
|
pname = "amqp-client";
|
|
|
|
inherit version;
|
|
minimalOCamlVersion = "4.14.0";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "andersfugmann";
|
|
repo = "amqp-client";
|
|
tag = version;
|
|
hash = "sha256-zWhkjVoKyNCIBXD5746FywCg3DKn1mXb1tn1VlF9Tyg=";
|
|
};
|
|
|
|
doCheck = true;
|
|
|
|
meta = {
|
|
description = "Amqp client base library";
|
|
homepage = "https://github.com/andersfugmann/amqp-client";
|
|
license = lib.licenses.bsd3;
|
|
changelog = "https://raw.githubusercontent.com/andersfugmann/amqp-client/refs/tags/${version}/Changelog";
|
|
maintainers = with lib.maintainers; [ momeemt ];
|
|
longDescription = ''
|
|
This library provides high level client bindings for amqp. The library
|
|
is tested with rabbitmq, but should work with other amqp
|
|
servers. The library is written in pure OCaml.
|
|
|
|
This is the base library required by lwt/async versions.
|
|
You should install either amqp-client-async or amqp-client-lwt
|
|
for actual client functionality.
|
|
'';
|
|
};
|
|
}
|