cabal-install use multiple config files?

Stephen Paul Weber singpolyma at singpolyma.net
Mon Dec 10 00:49:52 CET 2012


Somebody claiming to be Roman Cheplyaka wrote:
>* Stephen Paul Weber <singpolyma at singpolyma.net> [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



More information about the Glasgow-haskell-users mailing list