Merge pull request #295011 from drupol/php/extensions/dom/fix-lower-bound

phpExtensions.dom: fix lowest extensions
This commit is contained in:
Pol Dellaiera 2024-03-11 16:37:58 +01:00 committed by GitHub
commit 9336998b51
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -372,7 +372,7 @@ lib.makeScope pkgs.newScope (self: with self; {
"--enable-dom"
];
# Add a PHP lower version bound constraint to avoid applying the patch on older PHP versions.
patches = lib.optionals (lib.versionOlder php.version "8.2.14" && lib.versionAtLeast php.version "8.1") [
patches = lib.optionals (lib.versionOlder php.version "8.2.14" && lib.versionAtLeast php.version "8.1.27") [
# Fix tests with libxml 2.12
# Part of 8.3.1RC1+, 8.2.14RC1+
(fetchpatch {