
Package sets built with `haskellPackages.ghcWithHoogle` provide a Hoogle executable which points to a Hoogle database, but there's no way to programmatically access the derivation containing the Hoogle database from the package set. This adds a `passthru.hoogle` attribute to package sets built with `haskellPackages.ghcWithHoogle`, and a `passthru.database` helper to derivations built with `haskellPackages.hoogleWithPackages`.
6 lines
92 B
Bash
6 lines
92 B
Bash
#! @shell@
|
|
|
|
COMMAND=$1
|
|
shift
|
|
exec @hoogle@/bin/hoogle "$COMMAND" --database @database@ "$@"
|