diff options
author | Juan J. Martinez <jjm@usebox.net> | 2023-02-12 14:51:46 +0000 |
---|---|---|
committer | Juan J. Martinez <jjm@usebox.net> | 2023-02-12 15:04:02 +0000 |
commit | dd896b93e33038119fabda0e73367e460a75996f (patch) | |
tree | edbd5ae3b8ac7ac82411c6d2a09e9fc4a85a30fd /bin | |
download | cross-compile-hs-wine-dd896b93e33038119fabda0e73367e460a75996f.tar.gz cross-compile-hs-wine-dd896b93e33038119fabda0e73367e460a75996f.zip |
Initial import
Diffstat (limited to 'bin')
-rwxr-xr-x | bin/cabal-wine | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/bin/cabal-wine b/bin/cabal-wine new file mode 100755 index 0000000..4e11e70 --- /dev/null +++ b/bin/cabal-wine @@ -0,0 +1,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 + |