···203 # This is a set of PHP extensions meant to be used in php.buildEnv
204 # or php.withExtensions to extend the functionality of the PHP
205 # interpreter.
206- extensions = {
0000000000000207 amqp = callPackage ../development/php-packages/amqp { };
208209 apcu = callPackage ../development/php-packages/apcu { };
···225 igbinary = callPackage ../development/php-packages/igbinary { };
226227 imagick = callPackage ../development/php-packages/imagick { };
228-229- inotify = callPackage ../development/php-packages/inotify { };
230231 mailparse = callPackage ../development/php-packages/mailparse { };
232···292293 yaml = callPackage ../development/php-packages/yaml { };
294 } // (
0295 let
296 # This list contains build instructions for different modules that one may
297 # want to build.
···637 # Produce the final attribute set of all extensions defined.
638 in
639 builtins.listToAttrs namedExtensions
640- ) // lib.optionalAttrs (!(lib.versionAtLeast php.version "8.3")) {
641- blackfire = callPackage ../development/tools/misc/blackfire/php-probe.nix { inherit php; };
642- };
643})
···203 # This is a set of PHP extensions meant to be used in php.buildEnv
204 # or php.withExtensions to extend the functionality of the PHP
205 # interpreter.
206+ # The extensions attributes is composed of three sections:
207+ # 1. The contrib conditional extensions, which are only available on specific versions or system
208+ # 2. The contrib extensions available
209+ # 3. The core extensions
210+ extensions =
211+ # Contrib conditional extensions
212+ lib.optionalAttrs (!(lib.versionAtLeast php.version "8.3")) {
213+ blackfire = callPackage ../development/tools/misc/blackfire/php-probe.nix { inherit php; };
214+ } // lib.optionalAttrs (!stdenv.isDarwin) {
215+ # Only available on Linux: https://www.php.net/manual/en/inotify.requirements.php
216+ inotify = callPackage ../development/php-packages/inotify { };
217+ } //
218+ # Contrib extensions
219+ {
220 amqp = callPackage ../development/php-packages/amqp { };
221222 apcu = callPackage ../development/php-packages/apcu { };
···238 igbinary = callPackage ../development/php-packages/igbinary { };
239240 imagick = callPackage ../development/php-packages/imagick { };
00241242 mailparse = callPackage ../development/php-packages/mailparse { };
243···303304 yaml = callPackage ../development/php-packages/yaml { };
305 } // (
306+ # Core extensions
307 let
308 # This list contains build instructions for different modules that one may
309 # want to build.
···649 # Produce the final attribute set of all extensions defined.
650 in
651 builtins.listToAttrs namedExtensions
652+ );
00653})