Merge pull request #242134 from NixOS/php/extension-inotify-update

phpExtensions.inotify: update platforms
This commit is contained in:
Pol Dellaiera 2023-07-08 13:40:37 +02:00 committed by GitHub
commit 793abdf061
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 7 additions and 9 deletions

View File

@ -1,6 +1,5 @@
{ buildPecl { buildPecl
, lib , lib
, stdenv
}: }:
buildPecl { buildPecl {
@ -11,11 +10,11 @@ buildPecl {
doCheck = true; doCheck = true;
meta = with lib; { meta = {
broken = stdenv.isDarwin; # no inotify support
description = "Inotify bindings for PHP"; description = "Inotify bindings for PHP";
license = licenses.php301;
homepage = "https://github.com/arnaud-lb/php-inotify"; homepage = "https://github.com/arnaud-lb/php-inotify";
maintainers = teams.php.members; license = lib.licenses.php301;
maintainers = lib.teams.php.members;
platforms = lib.platforms.linux;
}; };
} }

View File

@ -204,16 +204,13 @@ lib.makeScope pkgs.newScope (self: with self; {
# or php.withExtensions to extend the functionality of the PHP # or php.withExtensions to extend the functionality of the PHP
# interpreter. # interpreter.
# The extensions attributes is composed of three sections: # The extensions attributes is composed of three sections:
# 1. The contrib conditional extensions, which are only available on specific versions or system # 1. The contrib conditional extensions, which are only available on specific PHP versions
# 2. The contrib extensions available # 2. The contrib extensions available
# 3. The core extensions # 3. The core extensions
extensions = extensions =
# Contrib conditional extensions # Contrib conditional extensions
lib.optionalAttrs (!(lib.versionAtLeast php.version "8.3")) { lib.optionalAttrs (!(lib.versionAtLeast php.version "8.3")) {
blackfire = callPackage ../development/tools/misc/blackfire/php-probe.nix { inherit php; }; 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 # Contrib extensions
{ {
@ -239,6 +236,8 @@ 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 { };