2024-05-15 15:35:15 +00:00
|
|
|
{
|
|
|
|
buildPecl,
|
|
|
|
lib,
|
|
|
|
rdkafka,
|
|
|
|
pcre2,
|
|
|
|
}:
|
2020-10-16 20:44:37 +00:00
|
|
|
|
|
|
|
buildPecl {
|
|
|
|
pname = "rdkafka";
|
|
|
|
|
2022-08-12 12:06:08 +00:00
|
|
|
version = "6.0.3";
|
|
|
|
sha256 = "sha256-Euqrl21JaX4x8WOLR4ietexhrbdYcIlBESsVf47H3Ug=";
|
2020-10-16 20:44:37 +00:00
|
|
|
|
2024-05-15 15:35:15 +00:00
|
|
|
buildInputs = [
|
|
|
|
rdkafka
|
|
|
|
pcre2
|
|
|
|
];
|
2020-10-16 20:44:37 +00:00
|
|
|
|
|
|
|
postPhpize = ''
|
|
|
|
substituteInPlace configure \
|
2021-03-09 03:18:52 +00:00
|
|
|
--replace 'SEARCH_PATH="/usr/local /usr"' 'SEARCH_PATH=${rdkafka}'
|
2020-10-16 20:44:37 +00:00
|
|
|
'';
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Kafka client based on librdkafka";
|
2021-06-28 23:13:55 +00:00
|
|
|
license = licenses.mit;
|
2020-10-16 20:44:37 +00:00
|
|
|
homepage = "https://github.com/arnaud-lb/php-rdkafka";
|
|
|
|
maintainers = teams.php.members;
|
|
|
|
};
|
|
|
|
}
|