[Nix-dev] Mixing cabal and Nix? Or: Best way to install development versions of Haskell packages?

Corey O'Connor coreyoconnor at gmail.com
Sun Mar 18 03:45:42 CET 2012


On Fri, Mar 9, 2012 at 7:27 AM, Andres Loeh <ksnix at andres-loeh.de> wrote:
> Is this what you're observing, really? In my experience, the wrapper
> doesn't work nicely with cabal-install, because cabal gets confused by
> all the wrapper's package config flags. I find it ok to worth with
> this situation, because most of the time, in practice, passing
> --ghc-pkg-options=--force just works fine.

Has anybody started investigating why Cabal gets confused? I'll look
into resolving this issue with Cabal. Presuming it is an issue with
Cabal, of course.

I don't really know much of how the wrapper operates. Is there a good
description somewhere?

> An option that I'm using more on more these days, though, is not to
> use the wrapper at all, but instead use the ghcWithPackages function
> to build a ghc with a fixed set of associated packages. Then that ghc
> then works normally with cabal.

I will try this.

-Corey O'Connor
coreyoconnor at gmail.com
http://corebotllc.com/


More information about the nix-dev mailing list