Skip to content

Commit

Permalink
phpExtensions.intl: use icu73 for PHP <= 8.0
Browse files Browse the repository at this point in the history
  • Loading branch information
drupol authored and jtojnar committed Jun 30, 2024
1 parent 627ff76 commit 4dcb106
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions pkgs/package-overrides.nix
Original file line number Diff line number Diff line change
Expand Up @@ -290,6 +290,11 @@ in
prev.extensions.inotify;

intl = prev.extensions.intl.overrideAttrs (attrs: {
buildInputs =
if lib.versionOlder prev.php.version "8.1.0" then
(builtins.filter (pkg: pkg != pkgs.icu73) attrs.buildInputs) ++ [ pkgs.icu64 ]
else
attrs.buildInputs;
doCheck = if lib.versionOlder prev.php.version "7.2" then false else attrs.doCheck or true;
patches =
let
Expand Down

0 comments on commit 4dcb106

Please sign in to comment.