2023-01-11 07:51:40 +00:00
|
|
|
{ buildPecl, lib, rabbitmq-c, fetchFromGitHub }:
|
2021-10-11 16:52:03 +00:00
|
|
|
|
2023-01-11 07:51:40 +00:00
|
|
|
let
|
2024-01-25 14:12:00 +00:00
|
|
|
version = "2.1.2";
|
2023-01-11 07:51:40 +00:00
|
|
|
in buildPecl {
|
|
|
|
inherit version;
|
2021-10-11 16:52:03 +00:00
|
|
|
pname = "amqp";
|
|
|
|
|
2023-01-11 07:51:40 +00:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "php-amqp";
|
|
|
|
repo = "php-amqp";
|
|
|
|
rev = "v${version}";
|
2024-01-25 14:12:00 +00:00
|
|
|
sha256 = "sha256-jVD5dq2kgFnprj190W9hnLG+9yPLWm19AjoGBBz6v8c=";
|
2023-01-11 07:51:40 +00:00
|
|
|
};
|
2021-10-11 16:52:03 +00:00
|
|
|
|
|
|
|
buildInputs = [ rabbitmq-c ];
|
|
|
|
|
|
|
|
AMQP_DIR = rabbitmq-c;
|
|
|
|
|
|
|
|
meta = with lib; {
|
2023-01-11 07:51:40 +00:00
|
|
|
changelog = "https://github.com/php-amqp/php-amqp/releases/tag/v${version}";
|
2021-10-11 16:52:03 +00:00
|
|
|
description = "PHP extension to communicate with any AMQP compliant server";
|
|
|
|
license = licenses.php301;
|
|
|
|
homepage = "https://github.com/php-amqp/php-amqp";
|
|
|
|
maintainers = teams.php.members;
|
|
|
|
};
|
|
|
|
}
|