haskell-packages: make hoogle wrapper much more helpful

* Build most of the stuff on /tmp, not in /nix/store.
* Generate hoogle database for all the dependencies.
* Generate haddock index and contents files.
* Cleanup.
This commit is contained in:
Jan Malakhovski
2015-08-18 19:56:17 +00:00
parent d8487667cf
commit 0013743845
3 changed files with 40 additions and 26 deletions
@@ -2,5 +2,4 @@
COMMAND=$1
shift
HOOGLE_DOC_PATH=@out@/share/hoogle/doc exec @hoogle@/bin/hoogle \
"$COMMAND" -d @out@/share/hoogle "$@"
exec @hoogle@/bin/hoogle "$COMMAND" -d @out@/share/doc/hoogle "$@"