From 2ab8bf1afa6c29e602b06449a98dc6a51847f15b Mon Sep 17 00:00:00 2001 From: Pol Dellaiera Date: Fri, 7 Jul 2023 23:02:55 +0200 Subject: [PATCH] phpExtensions.inotify: update platforms Follow up of https://github.com/NixOS/nixpkgs/pull/242015 --- pkgs/development/php-packages/inotify/default.nix | 9 ++++----- pkgs/top-level/php-packages.nix | 7 +++---- 2 files changed, 7 insertions(+), 9 deletions(-) diff --git a/pkgs/development/php-packages/inotify/default.nix b/pkgs/development/php-packages/inotify/default.nix index 28270a2510c4..4296df1d81ba 100644 --- a/pkgs/development/php-packages/inotify/default.nix +++ b/pkgs/development/php-packages/inotify/default.nix @@ -1,6 +1,5 @@ { buildPecl , lib -, stdenv }: buildPecl { @@ -11,11 +10,11 @@ buildPecl { doCheck = true; - meta = with lib; { - broken = stdenv.isDarwin; # no inotify support + meta = { description = "Inotify bindings for PHP"; - license = licenses.php301; 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; }; } diff --git a/pkgs/top-level/php-packages.nix b/pkgs/top-level/php-packages.nix index 78833e89b138..4f5f70b35dcf 100644 --- a/pkgs/top-level/php-packages.nix +++ b/pkgs/top-level/php-packages.nix @@ -204,16 +204,13 @@ lib.makeScope pkgs.newScope (self: with self; { # or php.withExtensions to extend the functionality of the PHP # interpreter. # 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 # 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 { @@ -239,6 +236,8 @@ 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 { };