48 lines
717 B
Bash
Executable File
48 lines
717 B
Bash
Executable File
#!/bin/sh
|
|
|
|
set -eux
|
|
|
|
. "$( cd "$(dirname "$0")" ; pwd -P )/../../../ghcup_env"
|
|
|
|
mkdir -p "${TMPDIR}"
|
|
|
|
apk add --no-cache \
|
|
curl \
|
|
gcc \
|
|
g++ \
|
|
gmp-dev \
|
|
ncurses-dev \
|
|
libffi-dev \
|
|
make \
|
|
xz \
|
|
tar \
|
|
perl
|
|
|
|
if [ "${BIT}" = "32" ] ; then
|
|
curl -sSfL https://downloads.haskell.org/ghcup/i386-linux-ghcup > ./ghcup-bin
|
|
else
|
|
curl -sSfL https://downloads.haskell.org/ghcup/x86_64-linux-ghcup > ./ghcup-bin
|
|
fi
|
|
chmod +x ghcup-bin
|
|
./ghcup-bin install ${GHC_VERSION}
|
|
./ghcup-bin install-cabal ${CABAL_VERSION}
|
|
|
|
# utils
|
|
apk add --no-cache \
|
|
bash \
|
|
git
|
|
|
|
## Package specific
|
|
apk add --no-cache \
|
|
zlib \
|
|
zlib-dev \
|
|
zlib-static \
|
|
gmp \
|
|
gmp-dev \
|
|
openssl-dev \
|
|
openssl-libs-static \
|
|
xz \
|
|
xz-dev \
|
|
ncurses-static
|
|
|