From 0dcce69be6bca6e3bac7713567c917a7af52756a Mon Sep 17 00:00:00 2001 From: Pol Dellaiera Date: Sun, 25 Dec 2022 21:14:10 +0100 Subject: [PATCH] php.extensions.amqp: 1.11.0beta -> 1.11.0 --- pkgs/development/php-packages/amqp/default.nix | 16 ++++++++++++---- 1 file changed, 12 insertions(+), 4 deletions(-) diff --git a/pkgs/development/php-packages/amqp/default.nix b/pkgs/development/php-packages/amqp/default.nix index 0c4f170901d1..bc955553119b 100644 --- a/pkgs/development/php-packages/amqp/default.nix +++ b/pkgs/development/php-packages/amqp/default.nix @@ -1,16 +1,24 @@ -{ buildPecl, lib, rabbitmq-c }: +{ buildPecl, lib, rabbitmq-c, fetchFromGitHub }: -buildPecl { +let + version = "1.11.0"; +in buildPecl { + inherit version; pname = "amqp"; - version = "1.11.0beta"; - sha256 = "sha256-HbVLN6fg2htYZgAFw+IhYHP+XN8j7cTLG6S0YHHOC14="; + 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";