2021-06-06 07:54:09 +00:00
|
|
|
{ buildPecl, lib, rdkafka, pcre2 }:
|
2020-10-16 20:44:37 +00:00
|
|
|
|
|
|
|
buildPecl {
|
|
|
|
pname = "rdkafka";
|
|
|
|
|
2021-02-05 17:12:51 +00:00
|
|
|
version = "5.0.0";
|
|
|
|
sha256 = "sha256-Qy+6rkPczhdxFbDhcuzmUTLMPUXYZ0HaheDBhkh4FXs=";
|
2020-10-16 20:44:37 +00:00
|
|
|
|
2021-06-06 07:54:09 +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;
|
|
|
|
};
|
|
|
|
}
|