mirror of
https://github.com/simplex-chat/simplex-chat.git
synced 2026-11-06 10:27:34 +00:00
build: provide Darwin iconv when planning stable GHC projects
This commit is contained in:
1 file changed
+7
@@ -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
|
||||
|
||||
Reference in new issue
Block a user