aboutsummaryrefslogtreecommitdiff
path: root/bin/cabal-wine
blob: 4e11e7060f5f37b9163585be782c74b240f68fcb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
#!/bin/bash

set +e

SCRIPT_DIR=$( cd -- "$( dirname -- "${BASH_SOURCE[0]}" )" &> /dev/null && pwd )
BASE=`realpath $SCRIPT_DIR/..`

export WINEPATH=`winepath -w $BASE/ghc/bin/`:`winepath -w $BASE/mingw64/bin/`:`winepath -w $BASE/bin/`
export PKG_CONFIG_PATH=`winepath -w $BASE/packages/mingw64/x86_64-w64-mingw32/lib/pkgconfig`

wine $BASE/packages/cabal/cabal.exe --http-transport=plain-http $* -w $BASE/packages/ghc/bin/ghc.exe --with-gcc=$BASE/packages/mingw64/bin/gcc.exe