php81Extensions.ctype: fix build

This commit is contained in:
Piotr Kwiecinski
2025-04-22 20:29:44 +02:00
parent 7582a31767
commit 896cb724de
+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";