Skip to content

Instantly share code, notes, and snippets.

@bitc
Created January 7, 2016 09:50
Show Gist options
  • Save bitc/6864570502cb870034b9 to your computer and use it in GitHub Desktop.
Save bitc/6864570502cb870034b9 to your computer and use it in GitHub Desktop.
# vim: ts=2 sw=2 sts=2 et:
containers:
dev:
setup:
- !Ubuntu trusty
- !BuildDeps [software-properties-common]
- !Sh |
add-apt-repository -y ppa:hvr/ghc
apt-get update
- !Install [pkg-config, build-essential, autoconf, automake, ghc-7.10.2, cabal-install-1.22]
- !Env
PATH: /opt/ghc/7.10.2/bin:/opt/cabal/1.22/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games
- !Sh |
cabal update
cabal install --global \
mustache \
optparse-applicative \
shelly \
yaml
# hdevtools (for development only)
- !BuildDeps [git]
- !Sh |
set -ex
cd /tmp
git clone --depth 1 https://github.com/bitc/hdevtools.git
cd hdevtools
cabal update
cabal install --global
cd /tmp
rm -rfv hdevtools
environ:
HOME: /tmp
PATH: /opt/ghc/7.10.2/bin:/opt/cabal/1.22/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games
commands:
make: !Command
container: dev
run: ['make']
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment