From 3f99d8e812023a370173907bced0773db2f444a6 Mon Sep 17 00:00:00 2001 From: Pol Dellaiera Date: Tue, 9 Aug 2022 17:19:39 +0200 Subject: [PATCH] Add patch for `pcntl` extension. --- pkgs/package-overrides.nix | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/pkgs/package-overrides.nix b/pkgs/package-overrides.nix index 26b690ce..81eb8c0b 100644 --- a/pkgs/package-overrides.nix +++ b/pkgs/package-overrides.nix @@ -160,6 +160,19 @@ in ]; }); + pcntl = prev.extensions.pcntl.overrideAttrs (attrs: { + patches = + attrs.patches or [] + ++ lib.optionals (lib.versionAtLeast prev.php.version "8.2") [ + # Fix pcntl builds + # More info at https://github.com/php/php-src/pull/9284 + (pkgs.fetchpatch { + url = "https://github.com/php/php-src/commit/20f4f84274f939d5f061bb1fccd23ce563ece6d0.patch"; + sha256 = "PJrV69RUBG9xSKLm8sffIp8WgsmxWLtK2iLQFWCjmXQ="; + }) + ]; + }); + intl = prev.extensions.intl.overrideAttrs (attrs: { doCheck = if lib.versionOlder prev.php.version "7.2" then false else attrs.doCheck or true; patches =