benkolera / spacemacs-hie-nix

Spacemacs layer for using a nix friendly haskell-ide-engine lsp
GNU General Public License v3.0
17 stars 3 forks source link

Hoogle database setup by nix is not able to be found by hie #1

Open benkolera opened 5 years ago

benkolera commented 5 years ago

The hoogle binary actually has the DB hardcoded in it, so it is a bit tricky for hie to discover this at the moment.

[nix-shell:~/src/gitlab/qfpl/open-banking-conformance-suite/open-banking-au-api-types]$ cat /nix/store/s6a9fmb5m99m09z7m3ksabkmakzj16fy-ghc-8.4.3-with-packages/bin/hoogle
#! /nix/store/nii7pk6pv4x4as7vsxbvwyzjn67vax6r-bash-4.4-p23/bin/bash

COMMAND=$1
shift
exec /nix/store/fn2w8axd4c0haxl767mmdmhjr7jwkand-hoogle-5.0.17.3/bin/hoogle "$COMMAND" --database /nix/store/lskc467510dv69kv1d5n7zs0q2y0yszm-hoogle-local-0.1/share/doc/hoogle/default.hoo "$@"
benkolera commented 5 years ago

See https://github.com/domenkozar/hie-nix/issues/27#issuecomment-440535771