From 4dcb106a3a7113be912155b4898c597578747a50 Mon Sep 17 00:00:00 2001 From: Pol Dellaiera Date: Sun, 30 Jun 2024 09:22:58 +0200 Subject: [PATCH] phpExtensions.intl: use `icu73` for PHP <= 8.0 Context: https://github.com/NixOS/nixpkgs/pull/276054 --- pkgs/package-overrides.nix | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/pkgs/package-overrides.nix b/pkgs/package-overrides.nix index e0ea19a6..c59a8136 100644 --- a/pkgs/package-overrides.nix +++ b/pkgs/package-overrides.nix @@ -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