ghcup-hs/.gitlab/before_script/linux/install_deps.sh

28 lines
852 B
Bash
Raw Normal View History

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
2021-09-10 11:18:58 +00:00
sudo apt-get install -y libnuma-dev zlib1g-dev libgmp-dev libgmp10 libssl-dev liblzma-dev libbz2-dev git wget lsb-release software-properties-common gnupg2 apt-transport-https gcc autoconf automake build-essential
2020-04-15 07:45:18 +00:00
2021-07-15 20:39:37 +00:00
if [ "${CROSS}" = "arm-linux-gnueabihf" ] ; then
2021-09-10 11:18:58 +00:00
sudo apt-get install -y gcc-arm-linux-gnueabihf
2021-07-15 20:39:37 +00:00
sudo dpkg --add-architecture armhf
sudo apt-get update -y
sudo apt-get install -y libncurses-dev:armhf
fi
2021-09-10 11:18:58 +00:00
export BOOTSTRAP_HASKELL_NONINTERACTIVE=1
export BOOTSTRAP_HASKELL_GHC_VERSION=$GHC_VERSION
export BOOTSTRAP_HASKELL_CABAL_VERSION=$CABAL_VERSION
export BOOTSTRAP_HASKELL_VERBOSE=1
2020-04-15 07:45:18 +00:00
2021-09-10 11:18:58 +00:00
curl --proto '=https' --tlsv1.2 -sSf https://get-ghcup.haskell.org | sh
2021-07-10 18:25:27 +00:00
2021-09-10 11:18:58 +00:00
rm "${GHCUP_INSTALL_BASE_PREFIX}"/.ghcup/bin/ghcup
2020-04-15 07:45:18 +00:00