From 74f14c68a40590edcb7fcdf9f1b90cbc6e4b9d64 Mon Sep 17 00:00:00 2001 From: Julian Ospald Date: Tue, 12 Oct 2021 20:09:40 +0200 Subject: [PATCH] Fix path to cabal bin dir in adjust_cabal_config --- scripts/bootstrap/bootstrap-haskell | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/scripts/bootstrap/bootstrap-haskell b/scripts/bootstrap/bootstrap-haskell index c8c20b1..b8d3d9e 100755 --- a/scripts/bootstrap/bootstrap-haskell +++ b/scripts/bootstrap/bootstrap-haskell @@ -448,7 +448,12 @@ warn_path() { } adjust_cabal_config() { - edo cabal user-config -a "extra-prog-path: $(cygpath -w "$GHCUP_BIN"), $(cygpath -w "$HOME"/AppData/Roaming/cabal/bin), $(cygpath -w "$GHCUP_MSYS2"/usr/bin), $(cygpath -w "$GHCUP_MSYS2"/mingw64/bin)" -a "extra-include-dirs: $(cygpath -w "$GHCUP_MSYS2"/mingw64/include)" -a "extra-lib-dirs: $(cygpath -w "$GHCUP_MSYS2"/mingw64/lib)" -f init + if [ -n "${CABAL_DIR}" ] ; then + cabal_bin="${CABAL_DIR}/bin" + else + cabal_bin="$HOME/AppData/Roaming/cabal/bin" + fi + edo cabal user-config -a "extra-prog-path: $(cygpath -w "$GHCUP_BIN"), $(cygpath -w "$cabal_bin"), $(cygpath -w "$GHCUP_MSYS2"/usr/bin), $(cygpath -w "$GHCUP_MSYS2"/mingw64/bin)" -a "extra-include-dirs: $(cygpath -w "$GHCUP_MSYS2"/mingw64/include)" -a "extra-lib-dirs: $(cygpath -w "$GHCUP_MSYS2"/mingw64/lib)" -f init } ask_cabal_config_init() {