phpExtensions.inotify: disable on darwin
The `inotify` extension is only available on Linux.
This commit is contained in:
parent
151a042680
commit
05386496df
1 changed files with 16 additions and 6 deletions
|
@ -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
|
# This is a set of PHP extensions meant to be used in php.buildEnv
|
||||||
# or php.withExtensions to extend the functionality of the PHP
|
# or php.withExtensions to extend the functionality of the PHP
|
||||||
# interpreter.
|
# 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 { };
|
amqp = callPackage ../development/php-packages/amqp { };
|
||||||
|
|
||||||
apcu = callPackage ../development/php-packages/apcu { };
|
apcu = callPackage ../development/php-packages/apcu { };
|
||||||
|
@ -226,8 +239,6 @@ lib.makeScope pkgs.newScope (self: with self; {
|
||||||
|
|
||||||
imagick = callPackage ../development/php-packages/imagick { };
|
imagick = callPackage ../development/php-packages/imagick { };
|
||||||
|
|
||||||
inotify = callPackage ../development/php-packages/inotify { };
|
|
||||||
|
|
||||||
mailparse = callPackage ../development/php-packages/mailparse { };
|
mailparse = callPackage ../development/php-packages/mailparse { };
|
||||||
|
|
||||||
maxminddb = callPackage ../development/php-packages/maxminddb { };
|
maxminddb = callPackage ../development/php-packages/maxminddb { };
|
||||||
|
@ -292,6 +303,7 @@ lib.makeScope pkgs.newScope (self: with self; {
|
||||||
|
|
||||||
yaml = callPackage ../development/php-packages/yaml { };
|
yaml = callPackage ../development/php-packages/yaml { };
|
||||||
} // (
|
} // (
|
||||||
|
# Core extensions
|
||||||
let
|
let
|
||||||
# This list contains build instructions for different modules that one may
|
# This list contains build instructions for different modules that one may
|
||||||
# want to build.
|
# want to build.
|
||||||
|
@ -637,7 +649,5 @@ lib.makeScope pkgs.newScope (self: with self; {
|
||||||
# Produce the final attribute set of all extensions defined.
|
# Produce the final attribute set of all extensions defined.
|
||||||
in
|
in
|
||||||
builtins.listToAttrs namedExtensions
|
builtins.listToAttrs namedExtensions
|
||||||
) // lib.optionalAttrs (!(lib.versionAtLeast php.version "8.3")) {
|
);
|
||||||
blackfire = callPackage ../development/tools/misc/blackfire/php-probe.nix { inherit php; };
|
|
||||||
};
|
|
||||||
})
|
})
|
||||||
|
|
Loading…
Reference in a new issue