3
0
Fork 0
forked from mirrors/nixpkgs

Correctly locate Haddocks in hoogle-local expression

On some versions of GHC, documentation is at, for example:

    LIB/share/doc/

In others, it is at:

    LIB/share/doc/x86_64-darwin-ghc7.6.3/

This change will pick up documentation first from the second location, then
from the first.
This commit is contained in:
John Wiegley 2014-05-27 12:53:26 -05:00
parent 4fa4518875
commit 23fb83b37d

View file

@ -73,7 +73,8 @@ cabal.mkDerivation (self: rec {
for i in $docPackages; do
import_dbs $i/share/doc
ln -sf $i/share/doc/* $out/share/hoogle/doc
ln -sf $i/share/doc/*-ghc-*/* $out/share/hoogle/doc 2> /dev/null \
|| ln -sf $i/share/doc/* $out/share/hoogle/doc
done
import_dbs ${self.ghc}/share/doc/ghc*/html/libraries