diff --git a/pkgs/package-overrides.nix b/pkgs/package-overrides.nix index 26b690c..81eb8c0 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 =