diff --git a/build_raspbian.sh b/build_raspbian.sh new file mode 100644 index 0000000..327f78d --- /dev/null +++ b/build_raspbian.sh @@ -0,0 +1,18 @@ +#!/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 + +stack setup +stack build