nixpkgs/pkgs/development/haskell-modules/hoogle-local-wrapper.sh
Rebecca Turner 03c44317c8
haskellPackages.ghcWithHoogle: add passthru.hoogle
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`.
2025-05-01 16:19:22 -07:00

6 lines
92 B
Bash

#! @shell@
COMMAND=$1
shift
exec @hoogle@/bin/hoogle "$COMMAND" --database @database@ "$@"