2020-05-01 11:38:19 +00:00
|
|
|
#!/bin/sh
|
|
|
|
|
|
|
|
# Raspbian
|
|
|
|
|
|
|
|
sudo apt-get install git llvm-6.0-tools zlib1g-dev ghc
|
|
|
|
export PATH="/usr/lib/llvm-6.0/bin/:$PATH"
|
|
|
|
|
|
|
|
wget https://github.com/commercialhaskell/stack/releases/download/v2.1.3/stack-2.1.3-linux-arm.tar.gz
|
|
|
|
tar xzvf stack-*.tar.gz
|
|
|
|
sudo cp stack-*/stack /usr/local/bin/
|
|
|
|
git clone https://github.com/erebe/wstunnel
|
|
|
|
cd wstunnel
|
|
|
|
|
|
|
|
stack config set system-ghc --global true
|
|
|
|
sed -i "s/resolver:.*/resolver: lts-12.26/g" stack.yaml
|
2020-05-01 13:38:41 +00:00
|
|
|
sed -i 's/-rtsopts ".*//g' wstunnel.cabal
|
2020-05-01 11:38:19 +00:00
|
|
|
|
|
|
|
stack setup
|
|
|
|
stack build
|