git-annex/debian/cabal-wrapper

15 lines
403 B
Text
Raw Normal View History

#!/bin/sh
# It would be more usual to use:
# export BUILDER=./Setup
# But Setup currently has a very bad dependency resolver, and very bad
# debugging output, and tends to eat all memory and die on small buildds.
2015-12-28 17:40:00 +00:00
# See https://github.com/haskell/cabal/issues/2777
set -e
# Avoid cabal writing to HOME, and avoid local cabal settings
# influencing the build.
HOME=$(mktemp -d)
export HOME
cabal "$@"