cabal-install use multiple config files?

I don't see a command-line switch to ask cabal-install to use a different config file. Is there an environment variable for it or something? I want to use the same cabal-install binary with three different installs of ghc and ghc-pkg to allow me to maintain my cross-compiler packages as well. -- Stephen Paul Weber, @singpolyma See http://singpolyma.net for how I prefer to be contacted edition right joseph

* Stephen Paul Weber
I don't see a command-line switch to ask cabal-install to use a different config file. Is there an environment variable for it or something? I want to use the same cabal-install binary with three different installs of ghc and ghc-pkg to allow me to maintain my cross-compiler packages as well.
There's a '--config-file' option, see https://github.com/haskell/cabal/issues/1113 Roman

Somebody claiming to be Roman Cheplyaka wrote:
* Stephen Paul Weber
[2012-12-09 21:20:34+0000] I don't see a command-line switch to ask cabal-install to use a different config file.
There's a '--config-file' option, see https://github.com/haskell/cabal/issues/1113
Sweet! I've got my environment working using this shell wrapper: #!/bin/sh export PATH="$HOME/src/ghc/inplace:$PATH" case "$1" in install) shift cabal --config-file="$HOME/.cabal-nto-qnx-i486/config" install --with-gcc=i486-pc-nto-qnx8.0.0-gcc --configure-option=--target=i486-pc-nto-qnx8.0.0 --configure-option=--build=i686-linux-gnu --configure-option=--host=i486-pc-nto-qnx8.0.0 --hsc2hs-option=--cross-safe --hsc2hs-option=--cross-compile "$@" ;; *) cabal --config-file="$HOME/.cabal-nto-qnx-i486/config" "$@" ;; esac Can I move any/all of those switches into the config file? None of them really seem to fit in the listed config options. -- Stephen Paul Weber, @singpolyma See http://singpolyma.net for how I prefer to be contacted edition right joseph
participants (2)
-
Roman Cheplyaka
-
Stephen Paul Weber