2021-06-06 07:54:09 +00:00
|
|
|
{ buildPecl, lib, rdkafka, pcre2 }:
|
2020-10-16 20:44:37 +00:00
|
|
|
|
|
|
|
buildPecl {
|
|
|
|
pname = "rdkafka";
|
|
|
|
|
2022-03-05 16:20:37 +00:00
|
|
|
version = "6.0.1";
|
|
|
|
sha256 = "sha256-ikq+cB5ZPRBCwhB0YQT0sEsVrJjbYzGEju2RrK388ZI=";
|
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;
|
|
|
|
};
|
|
|
|
}
|