2021-06-03 14:06:06 +01:00
|
|
|
{ buildPecl, lib, rdkafka, pcre2 }:
|
2020-10-11 18:49:28 +01:00
|
|
|
|
|
|
|
buildPecl {
|
|
|
|
pname = "rdkafka";
|
|
|
|
|
2021-01-20 22:14:16 +00:00
|
|
|
version = "5.0.0";
|
|
|
|
sha256 = "sha256-Qy+6rkPczhdxFbDhcuzmUTLMPUXYZ0HaheDBhkh4FXs=";
|
2020-10-11 18:49:28 +01:00
|
|
|
|
2021-06-03 14:06:06 +01:00
|
|
|
buildInputs = [ rdkafka pcre2 ];
|
2020-10-11 18:49:28 +01:00
|
|
|
|
|
|
|
postPhpize = ''
|
|
|
|
substituteInPlace configure \
|
2021-02-27 10:29:20 +00:00
|
|
|
--replace 'SEARCH_PATH="/usr/local /usr"' 'SEARCH_PATH=${rdkafka}'
|
2020-10-11 18:49:28 +01:00
|
|
|
'';
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Kafka client based on librdkafka";
|
2021-06-08 10:50:05 +01:00
|
|
|
license = licenses.mit;
|
2020-10-11 18:49:28 +01:00
|
|
|
homepage = "https://github.com/arnaud-lb/php-rdkafka";
|
|
|
|
maintainers = teams.php.members;
|
|
|
|
};
|
|
|
|
}
|