diff options
author | Jan Tojnar <jtojnar@gmail.com> | 2023-12-02 22:16:03 +0100 |
---|---|---|
committer | Jan Tojnar <jtojnar@gmail.com> | 2024-01-07 22:47:55 +0100 |
commit | c1dce2f654efc915df00a308c30574e27dca78ef (patch) | |
tree | 26f4e99244d6335a49a09018d046b1753bda62c0 /pkgs/top-level | |
parent | f85fe5fc293d310e635b6c0363819d7ca1159528 (diff) |
php81.extensions.dom: Fix build with libxml2 2.12
Diffstat (limited to 'pkgs/top-level')
-rw-r--r-- | pkgs/top-level/php-packages.nix | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/pkgs/top-level/php-packages.nix b/pkgs/top-level/php-packages.nix index c3219a5abca48..751a13b34ce7b 100644 --- a/pkgs/top-level/php-packages.nix +++ b/pkgs/top-level/php-packages.nix @@ -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"; |