From 93e66a17511db7b17fe563095f6220c350e3ee09 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Er=C3=A8be=20-=20Romain=20Gerard?= Date: Fri, 1 May 2020 13:38:19 +0200 Subject: [PATCH] Create build_raspbian.sh Former-commit-id: 56001d8833bf76de17e03d86d74e4f8a66f2e4d5 Former-commit-id: 5e1b3ca1c190b0851f630c1af3d50bd1576d0811 [formerly 855827f16995531ecca6f69dad7805a16d385125] [formerly b9929eb300bf5cedee35d4242ff83c1be6f2d935 [formerly fe7c83d28a6bcd72965d94167561e35101ffa81e [formerly fe7c83d28a6bcd72965d94167561e35101ffa81e [formerly fe7c83d28a6bcd72965d94167561e35101ffa81e [formerly fe03a695ce9e214bc462bc23f61625e20c916b9f]]]]] Former-commit-id: b76fce1ea240ba17893647dff7bcfc6f3bf24cc3 [formerly 1268d7bba784713d7e735cd2c26091f919ee1261] Former-commit-id: aea824e4ec29e996e55d3751adc30431c91836f1 Former-commit-id: 8b22eb2ce02033b4faae558c201b759e9711949e Former-commit-id: 0053714b56c5b5e8424b6935767cc7cfae38d8db Former-commit-id: f185e4bc67c5b6de2cbce62948dc19aed792df27 [formerly 09e28fd4048edfec91bbabcae907985d28417287] Former-commit-id: bc59cfea13c9037c3ae8c4cf1f2c6a8122d46084 --- build_raspbian.sh | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 build_raspbian.sh 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