From 9d8a1fff7dc251d75c75ca236dbb40b31b7fe230 Mon Sep 17 00:00:00 2001 From: Marc Scholten Date: Sun, 16 Nov 2025 09:41:52 -0800 Subject: [PATCH] haskellPackages.text-icu: disable homebrew flag on darwin By default text-icu sets homebrew=true. This can cause a nix build of text-icu to accidentally link the homebrew icu. It can also cause "doesn't work on my machine" issues when an old homebrew version with icu is installed on a mac and is accidentally picked up. --- pkgs/development/haskell-modules/configuration-darwin.nix | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/pkgs/development/haskell-modules/configuration-darwin.nix b/pkgs/development/haskell-modules/configuration-darwin.nix index 9569f4b36597..35ac1db40d05 100644 --- a/pkgs/development/haskell-modules/configuration-darwin.nix +++ b/pkgs/development/haskell-modules/configuration-darwin.nix @@ -391,6 +391,10 @@ self: super: ''; }) super.rio; + # Don't use homebrew icu on macOS + # https://github.com/NixOS/nixpkgs/issues/462046 + text-icu = disableCabalFlag "homebrew" super.text-icu; + # https://github.com/haskell-crypto/cryptonite/issues/360 cryptonite = appendPatch ./patches/cryptonite-remove-argon2.patch super.cryptonite;