Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ 2 buildPecl, 3 lib, 4 rdkafka, 5 pcre2, 6}: 7 8buildPecl { 9 pname = "rdkafka"; 10 version = "6.0.4"; 11 hash = "sha256-DZc5YxOjFnruSZqVFtqFzKJa+Y5fS1XaxVVBAJvzWlk="; 12 13 buildInputs = [ 14 rdkafka 15 pcre2 16 ]; 17 18 postPhpize = '' 19 substituteInPlace configure \ 20 --replace-fail 'SEARCH_PATH="/usr/local /usr"' 'SEARCH_PATH=${lib.getInclude rdkafka}' 21 ''; 22 23 meta = { 24 description = "Kafka client based on librdkafka"; 25 license = lib.licenses.mit; 26 homepage = "https://github.com/arnaud-lb/php-rdkafka"; 27 teams = [ lib.teams.php ]; 28 }; 29}