Permalink
Please sign in to comment.
Browse files
Parcel out homebrew install in /usr/local, add Vagrantfile for testing.
- Loading branch information...
Showing
with
576 additions
and 26 deletions.
- +3 −2 Vagrantfile
- +22 −24 bootstrap.sh
- +71 −0 cabal.yml
- +254 −0 osx-homebrew.yml
- +12 −0 osx-root.yml
- +214 −0 osx-user.yml
| @@ -0,0 +1,71 @@ | ||
| --- | ||
| # | ||
| # Setup cabal | ||
| # | ||
| - hosts: localhost | ||
| tasks: | ||
| - name: Download haskell platform | ||
| get_url: url='https://www.haskell.org/platform/download/2014.2.0.0/Haskell%20Platform%202014.2.0.0%2064bit.signed.pkg' | ||
| dest=/tmp/haskell_platform.pkg | ||
| timeout=300 | ||
| - name: Install haskell platform | ||
| command: sudo installer -target / -pkg /tmp/haskell_platform.pkg | ||
| ignore_errors: True | ||
| # NOTE: ^^^^ have to ignore because of | ||
| # https://github.com/haskell/haskell-platform/issues/151 | ||
| - name: Remove tmp file | ||
| command: rm /tmp/haskell_platform.pkg | ||
| ignore_errors: True | ||
| - name: ~/.cabal/bin | ||
| file: state=directory path=~/.cabal/bin | ||
| - name: ~/Library/Haskell | ||
| file: state=directory path=~/Library/Haskell | ||
| when: "ansible_os_family == 'Darwin'" | ||
| - name: ~/Library/Haskell/bin -> ~/.cabal/bin | ||
| file: state=link force=yes src=~/.cabal/bin path=~/Library/Haskell/bin | ||
| when: "ansible_os_family == 'Darwin'" | ||
| - name: cabal update | ||
| command: cabal update | ||
| - name: cabal install cabal cabal-install | ||
| command: cabal install -v cabal cabal-install | ||
| - name: install binaries with cabal sandboxes | ||
| environment: | ||
| PATH: ~/.cabal/bin:/usr/local/bin:/usr/bin:/usr/sbin:/bin:/sbin | ||
| TMPDIR: /tmp | ||
| shell: >- | ||
| temp=$(mktemp -d -t "cabalsandbox-{{item}}"); | ||
| cd ${temp} && | ||
| cabal sandbox init && | ||
| cabal install -v "{{item}}" && | ||
| cp .cabal-sandbox/bin/* ~/.cabal/bin && | ||
| cd / && | ||
| rm -fr ${temp} | ||
| with_items: | ||
| - pandoc | ||
| - shellcheck | ||
| - shake | ||
| - bake | ||
| - happy | ||
| - alex | ||
| - c2hs | ||
| - hi | ||
| - hlint | ||
| - hspec | ||
| - cgrep | ||
| - stylish-haskell | ||
| - hasktags | ||
| - hoogle | ||
| - cabal-meta | ||
| - ghc-mod | ||
| - hindent | ||
| - name: Hoogle update | ||
| command: ~/.cabal/bin/hoogle data |
Oops, something went wrong.
0 comments on commit
663ad45