2020-04-15 07:45:18 +00:00
|
|
|
#!/bin/sh
|
|
|
|
|
|
|
|
set -eux
|
|
|
|
|
2020-05-01 14:27:27 +00:00
|
|
|
. "$( cd "$(dirname "$0")" ; pwd -P )/../../ghcup_env"
|
|
|
|
|
|
|
|
mkdir -p "${TMPDIR}"
|
|
|
|
|
2020-04-15 07:45:18 +00:00
|
|
|
sudo apt-get update -y
|
2020-04-29 17:12:58 +00:00
|
|
|
sudo apt-get install -y libnuma-dev zlib1g-dev libgmp-dev libgmp10 libssl-dev liblzma-dev git wget
|
2020-04-15 07:45:18 +00:00
|
|
|
|
2020-04-18 19:16:03 +00:00
|
|
|
curl -sSfL https://downloads.haskell.org/~ghcup/x86_64-linux-ghcup > ./ghcup-bin
|
|
|
|
chmod +x ghcup-bin
|
2020-04-15 07:45:18 +00:00
|
|
|
|
2020-04-18 19:16:03 +00:00
|
|
|
./ghcup-bin install ${GHC_VERSION}
|
|
|
|
./ghcup-bin set ${GHC_VERSION}
|
|
|
|
./ghcup-bin install-cabal ${CABAL_VERSION}
|
2020-04-15 07:45:18 +00:00
|
|
|
|