2020-05-30 22:15:48 +02:00
|
|
|
#!/bin/sh
|
2020-05-07 18:28:27 +02:00
|
|
|
|
|
|
|
|
set -ex
|
|
|
|
|
|
|
|
|
|
mkdir -p ~/.ghcup/bin
|
2021-02-04 21:40:11 +01:00
|
|
|
curl -sSfL https://downloads.haskell.org/~ghcup/x86_64-apple-darwin-ghcup > ~/.ghcup/bin/ghcup
|
2020-05-07 18:28:27 +02:00
|
|
|
chmod +x ~/.ghcup/bin/ghcup
|
|
|
|
|
|
|
|
|
|
export PATH="$HOME/.ghcup/bin:$PATH"
|
|
|
|
|
|
2021-03-07 12:33:21 +01:00
|
|
|
ghcup install 8.10.4
|
|
|
|
|
ghcup install-cabal 3.4.0.0
|
|
|
|
|
ghcup set 8.10.4
|
2020-05-07 18:28:27 +02:00
|
|
|
|
|
|
|
|
|
|
|
|
|
## install ghcup
|
|
|
|
|
|
|
|
|
|
cabal update
|
2021-02-04 21:40:11 +01:00
|
|
|
cabal build --constraint="zlib +static" --constraint="lzma +static" -ftui
|
2020-05-30 22:15:48 +02:00
|
|
|
cp "$(cabal new-exec --verbose=0 --offline sh -- -c 'command -v ghcup')" .
|
2020-07-13 21:17:01 +02:00
|
|
|
strip ./ghcup
|
2020-05-30 22:15:48 +02:00
|
|
|
cp ghcup "./${ARTIFACT}"
|