Last active
August 29, 2015 14:18
-
-
Save cschneid/52f4fd711428316a9974 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
#!/bin/bash | |
# Setup new ppas | |
sudo apt-get update | |
sudo apt-get install -y software-properties-common python-software-properties | |
sudo add-apt-repository -y ppa:hvr/ghc | |
sudo add-apt-repository -y ppa:pi-rho/dev | |
sudo apt-add-repository -y ppa:chris-lea/node.js | |
# Make the system not suck | |
apt-get install zsh htop git tig tmux=1.9a-1~ppa1~t | |
apt-get install zlib1g-dev make autoconf libtinfo-dev | |
useradd -d /home/cschneid -m -G admin cschneid | |
chsh -s /bin/zsh cschneid | |
# Install GHC 7.10 | |
sudo apt-get update | |
sudo apt-get install -y cabal-install-1.22 ghc-7.10.1 | |
sudo ln -sf /usr/bin/cabal-1.22 /usr/bin/cabal | |
sudo ln -sf /opt/ghc/7.10.1/bin/* /usr/bin/ | |
echo 'export PATH="~/.cabal/bin:/opt/cabal/1.22/bin:/opt/ghc/7.8.4/bin:$PATH"' >> ~/.zshrc | |
export PATH=~/.cabal/bin:/opt/cabal/1.22/bin:/opt/ghc/7.8.4/bin:$PATH | |
# Alex & Happy & Cabal 1.22 | |
cabal update | |
cabal install cabal alex happy | |
# Node | |
apt-get install -y nodejs | |
# Upgrade cabal | |
git clone https://github.com/haskell/cabal.git | |
cd cabal | |
git checkout -b 1.22 --track origin/1.22 | |
cabal install ./Cabal | |
cabal install ./cabal-install | |
# Actually install ghcjs | |
git clone https://github.com/ghcjs/ghcjs-prim.git | |
git clone https://github.com/ghcjs/ghcjs.git | |
cabal install --reorder-goals --max-backjumps=-1 ./ghcjs ./ghcjs-prim | |
ghcjs-boot --dev --ghcjs-boot-dev-branch ghc-7.10 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment