Unverified Commit 5cbff28a authored by Pol Dellaiera's avatar Pol Dellaiera Committed by GitHub
Browse files

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

phpExtensions.inotify: disable on darwin
parents b3f7e605 05386496
Loading
Loading
Loading
Loading
+16 −6
Original line number Diff line number Diff line
@@ -203,7 +203,20 @@ lib.makeScope pkgs.newScope (self: with self; {
  # This is a set of PHP extensions meant to be used in php.buildEnv
  # or php.withExtensions to extend the functionality of the PHP
  # interpreter.
  extensions = {
  # The extensions attributes is composed of three sections:
  # 1. The contrib conditional extensions, which are only available on specific versions or system
  # 2. The contrib extensions available
  # 3. The core extensions
  extensions =
  # Contrib conditional extensions
   lib.optionalAttrs (!(lib.versionAtLeast php.version "8.3")) {
    blackfire = callPackage ../development/tools/misc/blackfire/php-probe.nix { inherit php; };
  } // lib.optionalAttrs (!stdenv.isDarwin) {
    # Only available on Linux: https://www.php.net/manual/en/inotify.requirements.php
    inotify = callPackage ../development/php-packages/inotify { };
  } //
  # Contrib extensions
  {
    amqp = callPackage ../development/php-packages/amqp { };

    apcu = callPackage ../development/php-packages/apcu { };
@@ -226,8 +239,6 @@ lib.makeScope pkgs.newScope (self: with self; {

    imagick = callPackage ../development/php-packages/imagick { };

    inotify = callPackage ../development/php-packages/inotify { };

    mailparse = callPackage ../development/php-packages/mailparse { };

    maxminddb = callPackage ../development/php-packages/maxminddb { };
@@ -292,6 +303,7 @@ lib.makeScope pkgs.newScope (self: with self; {

    yaml = callPackage ../development/php-packages/yaml { };
  } // (
    # Core extensions
    let
      # This list contains build instructions for different modules that one may
      # want to build.
@@ -637,7 +649,5 @@ lib.makeScope pkgs.newScope (self: with self; {
      # Produce the final attribute set of all extensions defined.
    in
    builtins.listToAttrs namedExtensions
  ) // lib.optionalAttrs (!(lib.versionAtLeast php.version "8.3")) {
    blackfire = callPackage ../development/tools/misc/blackfire/php-probe.nix { inherit php; };
  };
  );
})