Skip to content

Commit

Permalink
Add patch for pcntl extension.
Browse files Browse the repository at this point in the history
  • Loading branch information
drupol committed Aug 9, 2022
1 parent e65285d commit 3f99d8e
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions pkgs/package-overrides.nix
Original file line number Diff line number Diff line change
Expand Up @@ -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 =
Expand Down

0 comments on commit 3f99d8e

Please sign in to comment.