on master help sign in
Merge pull request #2295 from fpco/bootstrap-get-stack

debian-bootstrap.sh: changes to support re-use in building 'fpco/stack-build' Docker images

commit203d24e7ee5b2871bc6d68d25619c4e0f7091383 authorJens Petersen <juhpetersen@gmail.com> dateThu 16 Feb 2017, 12:20 (10 years ago) parente027bc793738c5
1 file changed+5−6
debian-bootstrap.sh+5−6
debian-bootstrap.sh+5−6
@@ -13,7 +13,6 @@
1313set -exu
1414
1515mkdir /home/stackage -p
16−locale-gen en_US.UTF-8
1716
1817export DEBIAN_FRONTEND=noninteractive
1918apt-get update
@@ -27,10 +26,6 @@ add-apt-repository -y ppa:marutter/rrutter
2726# Set the GHC version
2827GHCVER=8.0.2
2928
30−# Get Stack
31−apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 575159689BEFB442
32−echo 'deb http://download.fpcomplete.com/ubuntu xenial main'|tee /etc/apt/sources.list.d/fpco.list
33−
3429apt-get update
3530apt-get install -y \
3631 build-essential \
@@ -115,6 +110,7 @@ apt-get install -y \
115110 libzip-dev \
116111 libzmq3-dev \
117112 llvm-3.7 \
113+ locales \
118114 m4 \
119115 nettle-dev \
120116 nodejs \
@@ -123,13 +119,16 @@ apt-get install -y \
123119 r-base \
124120 r-base-dev \
125121 ruby-dev \
126− stack \
127122 wget \
128123 xclip \
129124 z3 \
130125 zip \
131126 zlib1g-dev
132127
128+locale-gen en_US.UTF-8
129+
130+curl -sSL https://get.haskellstack.org/ | sh
131+
133132# Put documentation where we expect it
134133mv /opt/ghc/$GHCVER/share/doc/ghc-$GHCVER/ /opt/ghc/$GHCVER/share/doc/ghc
135134