nixpkgs/pkgs/development/libraries/haskell/hoogle/hoogle-local-wrapper.sh
Thomas Tuegel 8c3f749eda Rewrite hoogleLocal expression
The old expression was broken. This began as an attempt to fix it, but
the new expression is substantially different. It takes advantage of new
features that obviate the need to patch Hoogle. It comes with several
limitations. The new expression does not build the database in parallel,
although it does not take long. The new expression also does not support
downloading databases from the Hoogle instance at haskell.org; those
databases link to Hackage for documentation, defying the meaning of local.
2014-09-12 15:29:02 -05:00

6 lines
133 B
Bash

#! @shell@
COMMAND=$1
shift
HOOGLE_DOC_PATH=@out@/share/hoogle/doc exec @hoogle@/bin/hoogle \
$COMMAND -d @out@/share/hoogle $@