nixpkgs/pkgs/development/php-packages/amqp/default.nix
2022-12-29 18:21:56 +01:00

28 lines
673 B
Nix

{ buildPecl, lib, rabbitmq-c, fetchFromGitHub }:
let
version = "1.11.0";
in buildPecl {
inherit version;
pname = "amqp";
src = fetchFromGitHub {
owner = "php-amqp";
repo = "php-amqp";
rev = "v${version}";
sha256 = "sha256-CDhNDk78D15MtljbtyYj8euPnCruLZnc2NEHqXDX8HY=";
};
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;
};
}