build: provide Darwin iconv when planning stable GHC projects

This commit is contained in:
Moritz Angermann committed 2026-10-15 16:29:15 +09:00
1 parent b2d18ae34b
commit da3fbbc902
1 file changed
+7
+7
View File
@@ -36,6 +36,12 @@
# We need this, to specify we want the cabal project.
# If the stack.yaml was dropped, this would not be necessary.
projectFileName = "cabal.project";
# The stable compiler's ghc-internal package names iconv without its
# external library directory. Include it in both planning and building.
cabalProjectLocal = pkgs.lib.optionalString pkgs'.stdenv.hostPlatform.isDarwin ''
package *
extra-lib-dirs: ${pkgs'.libiconv}/lib
'';
src = pkgs.haskell-nix.haskellLib.cleanGit {
name = "simplex-chat";
src = ./.;
@@ -686,6 +692,7 @@
}; in
(drv pkgs).shellFor {
withHoogle = false;
buildInputs = pkgs.lib.optionals pkgs.stdenv.hostPlatform.isDarwin [ pkgs.libiconv ];
nativeBuildInputs = [
updateCmd
pkgs.haskell-nix.nix-tools-unchecked-sh.exes.cabal