Skip to content

Commit

Permalink
Added option to the haskell mkDerivation to build quickjump index
Browse files Browse the repository at this point in the history
When visiting local documentation via hoogle currently for most
packages the quickjump index is missing so you only get a sad error
when pressing "s" to search in the current documentation.
  • Loading branch information
mgttlinger committed Dec 19, 2019
1 parent 3b308e1 commit 9a896dd
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions pkgs/development/haskell-modules/generic-builder.nix
Expand Up @@ -24,6 +24,7 @@ in
, doCheck ? !isCross && stdenv.lib.versionOlder "7.4" ghc.version
, doBenchmark ? false
, doHoogle ? true
, doHaddockQuickjump ? doHoogle
, editedCabalFile ? null
, enableLibraryProfiling ? !(ghc.isGhcjs or false)
, enableExecutableProfiling ? false
Expand Down Expand Up @@ -396,6 +397,7 @@ stdenv.mkDerivation ({
${optionalString (doHaddock && isLibrary) ''
${setupCommand} haddock --html \
${optionalString doHoogle "--hoogle"} \
${optionalString doHaddockQuickjump "--quickjump"} \
${optionalString (isLibrary && hyperlinkSource) "--hyperlink-source"} \
${stdenv.lib.concatStringsSep " " haddockFlags}
''}
Expand Down

0 comments on commit 9a896dd

Please sign in to comment.