2022-12-25 20:14:10 +00:00
|
|
|
{ buildPecl, lib, rabbitmq-c, fetchFromGitHub }:
|
2021-10-08 16:10:44 +00:00
|
|
|
|
2022-12-25 20:14:10 +00:00
|
|
|
let
|
|
|
|
version = "1.11.0";
|
|
|
|
in buildPecl {
|
|
|
|
inherit version;
|
2021-10-08 16:10:44 +00:00
|
|
|
pname = "amqp";
|
|
|
|
|
2022-12-25 20:14:10 +00:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "php-amqp";
|
|
|
|
repo = "php-amqp";
|
|
|
|
rev = "v${version}";
|
|
|
|
sha256 = "sha256-CDhNDk78D15MtljbtyYj8euPnCruLZnc2NEHqXDX8HY=";
|
|
|
|
};
|
2021-10-08 16:10:44 +00:00
|
|
|
|
|
|
|
buildInputs = [ rabbitmq-c ];
|
|
|
|
|
|
|
|
AMQP_DIR = rabbitmq-c;
|
|
|
|
|
|
|
|
meta = with lib; {
|
2022-12-25 20:14:10 +00:00
|
|
|
changelog = "https://github.com/php-amqp/php-amqp/releases/tag/v${version}";
|
2021-10-08 16:10:44 +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;
|
|
|
|
};
|
|
|
|
}
|