From 637be68d8fb04942585fe3c02fb16d5c46b76baa Mon Sep 17 00:00:00 2001 From: Eduard Bopp Date: Fri, 8 Oct 2021 18:10:44 +0200 Subject: [PATCH] phpExtensions.amqp: init at 1.11.0beta --- .../development/php-packages/amqp/default.nix | 19 +++++++++++++++++++ pkgs/top-level/php-packages.nix | 2 ++ 2 files changed, 21 insertions(+) create mode 100644 pkgs/development/php-packages/amqp/default.nix diff --git a/pkgs/development/php-packages/amqp/default.nix b/pkgs/development/php-packages/amqp/default.nix new file mode 100644 index 000000000000..0c4f170901d1 --- /dev/null +++ b/pkgs/development/php-packages/amqp/default.nix @@ -0,0 +1,19 @@ +{ buildPecl, lib, rabbitmq-c }: + +buildPecl { + pname = "amqp"; + + version = "1.11.0beta"; + sha256 = "sha256-HbVLN6fg2htYZgAFw+IhYHP+XN8j7cTLG6S0YHHOC14="; + + buildInputs = [ rabbitmq-c ]; + + AMQP_DIR = rabbitmq-c; + + meta = with lib; { + 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; + }; +} diff --git a/pkgs/top-level/php-packages.nix b/pkgs/top-level/php-packages.nix index 3ceaf784af3b..afcee93c3b21 100644 --- a/pkgs/top-level/php-packages.nix +++ b/pkgs/top-level/php-packages.nix @@ -159,6 +159,8 @@ lib.makeScope pkgs.newScope (self: with self; { # or php.withExtensions to extend the functionality of the PHP # interpreter. extensions = { + amqp = callPackage ../development/php-packages/amqp { }; + apcu = callPackage ../development/php-packages/apcu { }; apcu_bc = callPackage ../development/php-packages/apcu_bc { };