about summary refs log tree commit diff
path: root/pkgs
diff options
context:
space:
mode:
authorPol Dellaiera <pol.dellaiera@protonmail.com>2024-06-09 16:30:51 +0200
committerPol Dellaiera <pol.dellaiera@protonmail.com>2024-06-09 16:51:23 +0200
commitb09b1844d3f85758719619352556d5c3bbca5e0b (patch)
tree6b6c8104bbd41ce9c4e95ee7ddf93865b565f239 /pkgs
parent7cd0a0621ac42e04f3bb90b39e165d61a8b3cdfe (diff)
php81: restore patch for libxml2 on darwin
Diffstat (limited to 'pkgs')
-rw-r--r--pkgs/development/interpreters/php/8.1.nix12
1 files changed, 10 insertions, 2 deletions
diff --git a/pkgs/development/interpreters/php/8.1.nix b/pkgs/development/interpreters/php/8.1.nix
index a6eed4d4772bf..4b53f9e6c84b3 100644
--- a/pkgs/development/interpreters/php/8.1.nix
+++ b/pkgs/development/interpreters/php/8.1.nix
@@ -1,9 +1,17 @@
-{ callPackage, ... }@_args:
+{ callPackage, fetchpatch, ... }@_args:
 
 let
-  base = callPackage ./generic.nix (_args // {
+  base = callPackage ./generic.nix ((removeAttrs _args [ "fetchpatch" ]) // {
     version = "8.1.29";
     hash = "sha256-h6YDEyY/L1M/GA5xknLKXkfNmITU7DyTcgGY6v+uCCc=";
+    extraPatches = [
+      # Fix build with libxml 2.12+.
+      # Patch from https://github.com/php/php-src/commit/0a39890c967aa57225bb6bdf4821aff7a3a3c082
+      (fetchpatch {
+        url = "https://github.com/php/php-src/commit/0a39890c967aa57225bb6bdf4821aff7a3a3c082.patch";
+        hash = "sha256-HvpTL7aXO9gr4glFdhqUWQPrG8TYTlvbNINq33M3zS0=";
+      })
+    ];
   });
 in
 base.withExtensions ({ all, ... }: with all; ([