aboutsummaryrefslogtreecommitdiff
path: root/debian/cabal-wrapper
blob: 20568d483674db37c16df23efa38e09007047ed8 (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 CABAL=./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 "$@"