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

Andres Loeh ksnix at andres-loeh.de
Fri Mar 9 16:27:19 CET 2012


Hi Peter and Aristid.

Sorry, I seem to come late to this discussion.

> Cabal and Nix work together just fine.

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.

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.

Cheers,
  Andres


More information about the nix-dev mailing list