php81.extensions.dom: Fix build with libxml2 2.12

This commit is contained in:
Jan Tojnar 2023-12-02 22:16:03 +01:00
parent f85fe5fc29
commit c1dce2f654

View file

@ -370,6 +370,17 @@ lib.makeScope pkgs.newScope (self: with self; {
configureFlags = [
"--enable-dom"
];
patches = lib.optionals (lib.versionOlder php.version "8.2.14") [
# Fix tests with libxml 2.12
# Part of 8.3.1RC1+, 8.2.14RC1+
(fetchpatch {
url = "https://github.com/php/php-src/commit/061058a9b1bbd90d27d97d79aebcf2b5029767b0.patch";
hash = "sha256-0hOlAG+pOYp/gUU0MUMZvzWpgr0ncJi5GB8IeNxxyEU=";
excludes = [
"NEWS"
];
})
];
}
{
name = "enchant";