Skip to content

Commit 4838518

Browse files
committedFeb 15, 2017
Merge pull request #22805 from LumiGuide/fix-hoogle-ghcjs
ghcWithHoogle: fix for ghcjs (cherry picked from commit cb2499a)
1 parent 6309d97 commit 4838518

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed
 

‎pkgs/development/haskell-modules/hoogle.nix

+5-5
Original file line numberDiff line numberDiff line change
@@ -40,14 +40,14 @@ let
4040
if !isGhcjs
4141
then "ghc"
4242
else "ghcjs";
43-
docLibGlob =
43+
ghcDocLibDir =
4444
if !isGhcjs
45-
then ''share/doc/ghc*/html/libraries''
46-
else ''doc/lib'';
45+
then ghc.doc + ''/share/doc/ghc*/html/libraries''
46+
else ghc + ''/doc/lib'';
4747
# On GHCJS, use a stripped down version of GHC's prologue.txt
4848
prologue =
4949
if !isGhcjs
50-
then "${ghc.doc}/${docLibGlob}/prologue.txt"
50+
then "${ghcDocLibDir}/prologue.txt"
5151
else writeText "ghcjs-prologue.txt" ''
5252
This index includes documentation for many Haskell modules.
5353
'';
@@ -67,7 +67,7 @@ stdenv.mkDerivation {
6767
mkdir -p $out/share/doc/hoogle
6868
6969
echo importing builtin packages
70-
for docdir in ${ghc.doc}/${docLibGlob}/*; do
70+
for docdir in ${ghcDocLibDir}/*; do
7171
name="$(basename $docdir)"
7272
${opts isGhcjs ''docdir="$docdir/html"''}
7373
if [[ -d $docdir ]]; then

0 commit comments

Comments
 (0)