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 203 # This is a set of PHP extensions meant to be used in php.buildEnv 204 204 # or php.withExtensions to extend the functionality of the PHP 205 205 # interpreter. 206 - extensions = { 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 + { 207 220 amqp = callPackage ../development/php-packages/amqp { }; 208 221 209 222 apcu = callPackage ../development/php-packages/apcu { }; ··· 225 238 igbinary = callPackage ../development/php-packages/igbinary { }; 226 239 227 240 imagick = callPackage ../development/php-packages/imagick { }; 228 - 229 - inotify = callPackage ../development/php-packages/inotify { }; 230 241 231 242 mailparse = callPackage ../development/php-packages/mailparse { }; 232 243 ··· 292 303 293 304 yaml = callPackage ../development/php-packages/yaml { }; 294 305 } // ( 306 + # Core extensions 295 307 let 296 308 # This list contains build instructions for different modules that one may 297 309 # want to build. ··· 637 649 # Produce the final attribute set of all extensions defined. 638 650 in 639 651 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 - }; 652 + ); 643 653 })