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:
parent
4fa4518875
commit
23fb83b37d
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue