nixpkgs/pkgs/development/php-packages/rdkafka/default.nix
2021-01-20 22:14:16 +00:00

22 lines
512 B
Nix

{ buildPecl, lib, pkgs, pcre' }:
buildPecl {
pname = "rdkafka";
version = "5.0.0";
sha256 = "sha256-Qy+6rkPczhdxFbDhcuzmUTLMPUXYZ0HaheDBhkh4FXs=";
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;
};
}