-
-
Save quyse/4441543374b3102f7fd5 to your computer and use it in GitHub Desktop.
GHCJS boot on Arch Linux in Docker for stack issue #1496
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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