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.
This commit is contained in:
Marc Scholten
2025-11-16 11:30:09 -08:00
parent 41d975f14f
commit 9d8a1fff7d
@@ -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;