Merge pull request #22805 from LumiGuide/fix-hoogle-ghcjs

ghcWithHoogle: fix for ghcjs

authored by Peter Simons and committed by GitHub cb2499ac 9e086758

+5 -5
+5 -5
pkgs/development/haskell-modules/hoogle.nix
··· 40 if !isGhcjs 41 then "ghc" 42 else "ghcjs"; 43 - docLibGlob = 44 if !isGhcjs 45 - then ''share/doc/ghc*/html/libraries'' 46 - else ''doc/lib''; 47 # On GHCJS, use a stripped down version of GHC's prologue.txt 48 prologue = 49 if !isGhcjs 50 - then "${ghc.doc}/${docLibGlob}/prologue.txt" 51 else writeText "ghcjs-prologue.txt" '' 52 This index includes documentation for many Haskell modules. 53 ''; ··· 67 mkdir -p $out/share/doc/hoogle 68 69 echo importing builtin packages 70 - for docdir in ${ghc.doc}/${docLibGlob}/*; do 71 name="$(basename $docdir)" 72 ${opts isGhcjs ''docdir="$docdir/html"''} 73 if [[ -d $docdir ]]; then
··· 40 if !isGhcjs 41 then "ghc" 42 else "ghcjs"; 43 + ghcDocLibDir = 44 if !isGhcjs 45 + then ghc.doc + ''/share/doc/ghc*/html/libraries'' 46 + else ghc + ''/doc/lib''; 47 # On GHCJS, use a stripped down version of GHC's prologue.txt 48 prologue = 49 if !isGhcjs 50 + then "${ghcDocLibDir}/prologue.txt" 51 else writeText "ghcjs-prologue.txt" '' 52 This index includes documentation for many Haskell modules. 53 ''; ··· 67 mkdir -p $out/share/doc/hoogle 68 69 echo importing builtin packages 70 + for docdir in ${ghcDocLibDir}/*; do 71 name="$(basename $docdir)" 72 ${opts isGhcjs ''docdir="$docdir/html"''} 73 if [[ -d $docdir ]]; then