depot/third_party/nixpkgs/pkgs/development/php-packages/rdkafka/default.nix
Default email 02cf88bb76 Project import generated by Copybara.
GitOrigin-RevId: c4a0efdd5a728e20791b8d8d2f26f90ac228ee8d
2022-08-12 15:06:08 +03:00

22 lines
533 B
Nix

{ buildPecl, lib, rdkafka, pcre2 }:
buildPecl {
pname = "rdkafka";
version = "6.0.3";
sha256 = "sha256-Euqrl21JaX4x8WOLR4ietexhrbdYcIlBESsVf47H3Ug=";
buildInputs = [ rdkafka pcre2 ];
postPhpize = ''
substituteInPlace configure \
--replace 'SEARCH_PATH="/usr/local /usr"' 'SEARCH_PATH=${rdkafka}'
'';
meta = with lib; {
description = "Kafka client based on librdkafka";
license = licenses.mit;
homepage = "https://github.com/arnaud-lb/php-rdkafka";
maintainers = teams.php.members;
};
}