diff options
Diffstat (limited to 'pkgs')
-rw-r--r-- | pkgs/development/php-packages/rdkafka/default.nix | 21 | ||||
-rw-r--r-- | pkgs/top-level/php-packages.nix | 20 |
2 files changed, 22 insertions, 19 deletions
diff --git a/pkgs/development/php-packages/rdkafka/default.nix b/pkgs/development/php-packages/rdkafka/default.nix new file mode 100644 index 0000000000000..f96b18007693a --- /dev/null +++ b/pkgs/development/php-packages/rdkafka/default.nix @@ -0,0 +1,21 @@ +{ buildPecl, lib, pkgs, pcre' }: + +buildPecl { + pname = "rdkafka"; + + version = "4.0.3"; + sha256 = "1g00p911raxcc7n2w9pzadxaggw5c564md6hjvqfs9ip550y5x16"; + + 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; + }; +} diff --git a/pkgs/top-level/php-packages.nix b/pkgs/top-level/php-packages.nix index d52fe38923ea5..390466c0f6b40 100644 --- a/pkgs/top-level/php-packages.nix +++ b/pkgs/top-level/php-packages.nix @@ -130,25 +130,7 @@ in pthreads = callPackage ../development/php-packages/pthreads { }; - rdkafka = buildPecl { - version = "4.0.3"; - pname = "rdkafka"; - - sha256 = "1g00p911raxcc7n2w9pzadxaggw5c564md6hjvqfs9ip550y5x16"; - - buildInputs = with pkgs; [ rdkafka pcre' ]; - - postPhpize = '' - substituteInPlace configure \ - --replace 'SEARCH_PATH="/usr/local /usr"' 'SEARCH_PATH=${pkgs.rdkafka}' - ''; - - meta = { - description = "Kafka client based on librdkafka"; - homepage = "https://github.com/arnaud-lb/php-rdkafka"; - maintainers = lib.teams.php.members; - }; - }; + rdkafka = callPackage ../development/php-packages/rdkafka { }; redis = buildPecl { version = "5.1.1"; |