4984c07661
Former-commit-id: a0d796f338929a54d8866f5627c7fadec147f325 Former-commit-id: 46313bd5e4bcb8e2faf48bfe8ed3a3bf6e3d0d63 [formerly 430852961d551d9a92d98e63126b376156c48bdd] [formerly 5d031ce53e57350569ee424550555422e518aa95 [formerly 4dfac656cdf9ef24631cfb5290bb6e1647753f35 [formerly 4dfac656cdf9ef24631cfb5290bb6e1647753f35 [formerly 4dfac656cdf9ef24631cfb5290bb6e1647753f35 [formerly 3d915279057aade23fff31566e3769221d9bd5c7]]]]] Former-commit-id: f1cc6fe41850b20071f3ae29200c044995ac273f [formerly 970432c69266549b8120c332729156a635175087] Former-commit-id: 570a41e791303c30d7c40b9ab779b2cfb828e52c Former-commit-id: c724e87ce2165024b53eda06fa364b90186efbeb Former-commit-id: 4276aa8c8c43d14d4e56a607f8d84342a1f041c1 Former-commit-id: cd0fc0a3589c74b0d1c73d584d06955343198b1d [formerly abf1cb816c145c544fa88d4d07d931b94684c77d] Former-commit-id: 048f9021de0e705ce85a03b3e77dd4737436cd62
19 lines
509 B
Bash
19 lines
509 B
Bash
#!/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
|
|
sed -i 's/-rtsopts ".*//g' wstunnel.cabal
|
|
|
|
stack setup
|
|
stack build
|