From 5f2e02bafe9107e293ff49917bccb86c7ee770b9 Mon Sep 17 00:00:00 2001 From: dxo Date: Sun, 14 Jul 2024 20:20:39 +0200 Subject: [PATCH] haskellPackages.with-utf8: fix build on x86 darwin. --- pkgs/development/haskell-modules/configuration-darwin.nix | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/pkgs/development/haskell-modules/configuration-darwin.nix b/pkgs/development/haskell-modules/configuration-darwin.nix index 16e5d2613fb2..73445125a0c4 100644 --- a/pkgs/development/haskell-modules/configuration-darwin.nix +++ b/pkgs/development/haskell-modules/configuration-darwin.nix @@ -420,4 +420,9 @@ self: super: ({ "-p" "!/issue-108/" ]; }) super.ad; + + # Fixes missing libcharset.h: + # https://hydra.nixos.org/build/259447667 + # not sure why this is needed only on x86 darwin. is there potentially some deeper libiconv / stdenv issue? + with-utf8 = overrideCabal (_ : { extraLibraries = [pkgs.libiconv]; }) super.with-utf8; })