summaryrefslogtreecommitdiff
path: root/debian/cabal-wrapper
blob: a900c75433640e01a1046fb16c41afa02f7b0723 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#!/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.
# 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 "$@"