5c370c0b2a
GitOrigin-RevId: 33d1e753c82ffc557b4a585c77de43d4c922ebb5
33 lines
681 B
Nix
33 lines
681 B
Nix
{
|
|
buildPecl,
|
|
lib,
|
|
rabbitmq-c,
|
|
fetchFromGitHub,
|
|
}:
|
|
|
|
let
|
|
version = "2.1.2";
|
|
in
|
|
buildPecl {
|
|
inherit version;
|
|
pname = "amqp";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "php-amqp";
|
|
repo = "php-amqp";
|
|
rev = "v${version}";
|
|
sha256 = "sha256-jVD5dq2kgFnprj190W9hnLG+9yPLWm19AjoGBBz6v8c=";
|
|
};
|
|
|
|
buildInputs = [ rabbitmq-c ];
|
|
|
|
AMQP_DIR = rabbitmq-c;
|
|
|
|
meta = with lib; {
|
|
changelog = "https://github.com/php-amqp/php-amqp/releases/tag/v${version}";
|
|
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;
|
|
};
|
|
}
|