2020-10-11 18:49:28 +01:00
|
|
|
{ buildPecl, lib, pkgs, pcre' }:
|
|
|
|
|
|
|
|
buildPecl {
|
|
|
|
pname = "rdkafka";
|
|
|
|
|
2020-10-14 17:20:11 +01:00
|
|
|
version = "4.0.4";
|
|
|
|
sha256 = "18a8p43i2g93fv7qzvk2hk66z5iv0mk1rqn097x49bjigliv60mn";
|
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;
|
|
|
|
};
|
|
|
|
}
|