Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
GHCJS boot on Arch Linux in Docker for stack issue #1496
FROM base/archlinux
# necessary installations
RUN pacman -Sy --noconfirm archlinux-keyring
RUN pacman -Su --noconfirm
RUN pacman-db-upgrade
RUN pacman -S --noconfirm autoconf gcc make nodejs alex happy git sudo binutils fakeroot
# libtinfo from AUR
RUN git clone https://aur.archlinux.org/libtinfo.git && chmod a+rw libtinfo && cd libtinfo && sudo -u nobody makepkg -s && pacman -U --noconfirm libtinfo-*
# get stack
RUN curl -L https://www.stackage.org/stack/linux-x86_64 | tar xz --wildcards --strip-components=1 -C /usr/bin '*/stack'
# following installations doesn't require root
RUN useradd -m rrr
USER rrr
WORKDIR /home/rrr
# install ghcjs
COPY ghcjs-setup.yaml ghcjs-setup.yaml
RUN stack setup --stack-yaml ghcjs-setup.yaml
resolver: lts-3.19
compiler: ghcjs-0.2.0.20151029_ghc-7.10.2
compiler-check: match-exact
setup-info:
ghcjs:
source:
ghcjs-0.2.0.20151029_ghc-7.10.2:
url: "https://github.com/nrolland/ghcjs/releases/download/v0.2.0.20151029/ghcjs-0.2.0.20151029.tar.gz"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment