[Nix-dev] Haskell Infrastructure - Nix-Shell with Hoogle from cabal2nix

Andreas Herrmann andreash87 at gmx.ch
Wed Feb 17 11:23:29 CET 2016


Hi William,

On Tuesday 16 February 2016 09:57:10 William Casarin wrote:
> wrt. the hoogle question, there's a bunch of solutions written up here:
> 
> http://stackoverflow.com/questions/27728838/using-hoogle-in-a-haskell-development-environment-on-nix

Thanks for pointing me there, the answer by Ben was exactly what I was looking for.
I think, for now at least, I prefer the per-project version over a global override.

> The way I do this is create a custom environment for my haskell tools like so:
> 
> https://github.com/jb55/nix-files/blob/8a47989a1091910fdba202f7def235ddcca6b726/nixpkgs/config.nix#L62-L77
> 
> and
> 
> https://github.com/jb55/nix-files/blob/8a47989a1091910fdba202f7def235ddcca6b726/nixpkgs/config.nix#L43-L46
> 
> Then I can just nix-env -i haskellTools to put it in my path, and
> nix-env -e haskellTools to
> remove it from my path when I'm done. You could even automate this
> with a script.

Thanks for sharing your config. That's an interesting approach. I'll try it out once I've found out which packages I commonly need.

Best, Andreas


More information about the nix-dev mailing list