From dd896b93e33038119fabda0e73367e460a75996f Mon Sep 17 00:00:00 2001 From: "Juan J. Martinez" Date: Sun, 12 Feb 2023 14:51:46 +0000 Subject: Initial import --- bin/cabal-wine | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100755 bin/cabal-wine (limited to 'bin') 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 + -- cgit v1.2.3