From 896cb724decc16528b7372e3beee77ffa85b68c0 Mon Sep 17 00:00:00 2001 From: Piotr Kwiecinski <2151333+piotrkwiecinski@users.noreply.github.com> Date: Tue, 22 Apr 2025 19:56:42 +0200 Subject: [PATCH] php81Extensions.ctype: fix build --- pkgs/top-level/php-packages.nix | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/pkgs/top-level/php-packages.nix b/pkgs/top-level/php-packages.nix index 84cd4b2370cc..24340f26413f 100644 --- a/pkgs/top-level/php-packages.nix +++ b/pkgs/top-level/php-packages.nix @@ -432,10 +432,12 @@ lib.makeScope pkgs.newScope ( { name = "calendar"; } { name = "ctype"; - postPatch = lib.optionalString stdenv.hostPlatform.isDarwin '' - # Broken test on aarch64-darwin - rm ext/ctype/tests/lc_ctype_inheritance.phpt - ''; + postPatch = + lib.optionalString (stdenv.hostPlatform.isDarwin && lib.versionAtLeast php.version "8.2") + # Broken test on aarch64-darwin + '' + rm ext/ctype/tests/lc_ctype_inheritance.phpt + ''; } { name = "curl";