1{ buildPecl, lib, rdkafka, pcre2 }:
2
3buildPecl {
4 pname = "rdkafka";
5
6 version = "6.0.3";
7 sha256 = "sha256-Euqrl21JaX4x8WOLR4ietexhrbdYcIlBESsVf47H3Ug=";
8
9 buildInputs = [ rdkafka pcre2 ];
10
11 postPhpize = ''
12 substituteInPlace configure \
13 --replace 'SEARCH_PATH="/usr/local /usr"' 'SEARCH_PATH=${rdkafka}'
14 '';
15
16 meta = with lib; {
17 description = "Kafka client based on librdkafka";
18 license = licenses.mit;
19 homepage = "https://github.com/arnaud-lb/php-rdkafka";
20 maintainers = teams.php.members;
21 };
22}