ocamlPackages.amqp-client: init at 2.3.0

This commit is contained in:
Mutsuha Asada 2025-06-10 16:48:49 +09:00 committed by Vincent Laporte
parent 40de82b434
commit e30021f627
4 changed files with 102 additions and 0 deletions

View File

@ -0,0 +1,29 @@
{
buildDunePackage,
async,
uri,
amqp-client,
ezxmlm,
}:
buildDunePackage {
pname = "amqp-client-async";
inherit (amqp-client) version src;
doCheck = true;
buildInputs = [
ezxmlm
];
propagatedBuildInputs = [
amqp-client
async
uri
];
meta = amqp-client.meta // {
description = "Amqp client library, async version";
};
}

View File

@ -0,0 +1,39 @@
{
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.
'';
};
}

View File

@ -0,0 +1,28 @@
{
buildDunePackage,
lwt,
lwt_log,
amqp-client,
uri,
ezxmlm,
}:
buildDunePackage {
pname = "amqp-client-lwt";
inherit (amqp-client) version src;
buildInputs = [ ezxmlm ];
propagatedBuildInputs = [
lwt
lwt_log
amqp-client
uri
];
doCheck = true;
meta = amqp-client.meta // {
description = "Amqp client library, lwt version";
};
}

View File

@ -32,6 +32,12 @@ let
ancient = callPackage ../development/ocaml-modules/ancient { };
amqp-client = callPackage ../development/ocaml-modules/amqp-client { };
amqp-client-async = callPackage ../development/ocaml-modules/amqp-client/async.nix { };
amqp-client-lwt = callPackage ../development/ocaml-modules/amqp-client/lwt.nix { };
angstrom = callPackage ../development/ocaml-modules/angstrom { };
angstrom-async = callPackage ../development/ocaml-modules/angstrom-async { };