2020-10-11 18:49:28 +01:00
|
|
|
{ buildPecl, lib, pkgs, pcre' }:
|
|
|
|
|
|
|
|
buildPecl {
|
|
|
|
pname = "rdkafka";
|
|
|
|
|
2020-12-09 22:48:20 +00:00
|
|
|
version = "4.1.1";
|
|
|
|
sha256 = "0s6cqd71z5jpqb98myk4askmbqphzzslf0d4vqlg2rig9q6fyv7x";
|
2020-10-11 18:49:28 +01:00
|
|
|
|
|
|
|
buildInputs = [ pkgs.rdkafka pcre' ];
|
|
|
|
|
|
|
|
postPhpize = ''
|
|
|
|
substituteInPlace configure \
|
|
|
|
--replace 'SEARCH_PATH="/usr/local /usr"' 'SEARCH_PATH=${pkgs.rdkafka}'
|
|
|
|
'';
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Kafka client based on librdkafka";
|
|
|
|
homepage = "https://github.com/arnaud-lb/php-rdkafka";
|
|
|
|
maintainers = teams.php.members;
|
|
|
|
};
|
|
|
|
}
|