Files
nixpkgs/pkgs/development/php-packages/amqp/default.nix
T
Ihar Hrachyshka 567e8dfd8e treewide: clean up 'meta = with' pattern
This commit was created by a combination of scripts and tools:
- an ast-grep script to prefix things in meta with `lib.`,
- a modified nixf-diagnose / nixf combination to remove unused `with
lib;`, and
- regular nixfmt.

Co-authored-by: Wolfgang Walther <walther@technowledgy.de>
2025-12-10 18:09:49 +01:00

34 lines
669 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 = {
changelog = "https://github.com/php-amqp/php-amqp/releases/tag/v${version}";
description = "PHP extension to communicate with any AMQP compliant server";
license = lib.licenses.php301;
homepage = "https://github.com/php-amqp/php-amqp";
teams = [ lib.teams.php ];
};
}