Skip to content

Commit 3f99d8e

Browse files
committed
Add patch for pcntl extension.
1 parent e65285d commit 3f99d8e

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

pkgs/package-overrides.nix

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -160,6 +160,19 @@ in
160160
];
161161
});
162162

163+
pcntl = prev.extensions.pcntl.overrideAttrs (attrs: {
164+
patches =
165+
attrs.patches or []
166+
++ lib.optionals (lib.versionAtLeast prev.php.version "8.2") [
167+
# Fix pcntl builds
168+
# More info at https://github.com/php/php-src/pull/9284
169+
(pkgs.fetchpatch {
170+
url = "https://github.com/php/php-src/commit/20f4f84274f939d5f061bb1fccd23ce563ece6d0.patch";
171+
sha256 = "PJrV69RUBG9xSKLm8sffIp8WgsmxWLtK2iLQFWCjmXQ=";
172+
})
173+
];
174+
});
175+
163176
intl = prev.extensions.intl.overrideAttrs (attrs: {
164177
doCheck = if lib.versionOlder prev.php.version "7.2" then false else attrs.doCheck or true;
165178
patches =

0 commit comments

Comments
 (0)