Skip to content
Snippets Groups Projects
Commit b15e142c authored by Vladimír Štill's avatar Vladimír Štill
Browse files

ansible: Hypsipyla – make cabal-installed packages work in haddoc

parent 0a7290e0
No related branches found
No related tags found
No related merge requests found
......@@ -14,7 +14,7 @@ unversion() {
for i in "$VERSIONED_GHCS/*"; do
SRCDIR=$i/libraries
for F in $SRCDIR/*; do
ln -sf $(readlink -f $F) $LIBDIR
ln -sf $(readlink -f $F) $LIBDIR/$(basename $F)
done
done
......@@ -23,7 +23,7 @@ for F in $VERSIONED_GHCS/$PRIMARY_GHC_VERS/libraries/*; do
if [[ -d $F ]]; then
ln -sf $(basename $F) $LIBDIR/$(unversion $(basename $F))
else
ln -sf $(readlink -f $F) $LIBDIR/
ln -sf $(readlink -f $F) $LIBDIR/$(basename $F)
fi
done
......
......@@ -180,6 +180,8 @@
- name: "Generate database"
command: "hoogle generate --haddock=/home/haskell/doc/libraries {{builtin_haddock_packages | join(' ')}} {{cabal_install | join(' ')}}"
environment:
GHC_PACKAGE_PATH: '/opt/ghc/{{ghc_primary_version}}/lib/ghc-{{ghc_primary_version}}/package.conf.d:/home/haskell/.cabal/store/ghc-{{ghc_primary_version}}/package.db'
- name: "Landing page git"
git:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment