php81Extensions.ctype: fix build (#400894)

This commit is contained in:
Pol Dellaiera
2025-04-22 18:46:21 +00:00
committed by GitHub
+6 -4
View File
@@ -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";