Merge pull request #242015 from NixOS/php/inotify-extension-is-only-available-on-linux

phpExtensions.inotify: disable on darwin

authored by Pol Dellaiera and committed by GitHub 5cbff28a b3f7e605

+16 -6
+16 -6
pkgs/top-level/php-packages.nix
··· 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 = { 207 amqp = callPackage ../development/php-packages/amqp { }; 208 209 apcu = callPackage ../development/php-packages/apcu { }; ··· 225 igbinary = callPackage ../development/php-packages/igbinary { }; 226 227 imagick = callPackage ../development/php-packages/imagick { }; 228 - 229 - inotify = callPackage ../development/php-packages/inotify { }; 230 231 mailparse = callPackage ../development/php-packages/mailparse { }; 232 ··· 292 293 yaml = callPackage ../development/php-packages/yaml { }; 294 } // ( 295 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 { }; 221 222 apcu = callPackage ../development/php-packages/apcu { }; ··· 238 igbinary = callPackage ../development/php-packages/igbinary { }; 239 240 imagick = callPackage ../development/php-packages/imagick { }; 241 242 mailparse = callPackage ../development/php-packages/mailparse { }; 243 ··· 303 304 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 + ); 653 })