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

Peter Simons simons at cryp.to
Fri Mar 9 16:03:35 CET 2012


Hi Aristid,

the build log says:

 > Using Cabal-1.10.2.0 compiled by ghc-7.0

That doesn't seem right. That library almost certainly didn't come from Nix. Is
it possible that your ~/.cabal and/or ~/.ghc directories contained remnants of
earlier builds that were performed with the system compiler? Could you please
remove both ~/.cabal and ~/.ghc, and then try the build again in a clean
environment?

Also, the build log shows several other tools that were used from the system,
i.e.:

 > Using ar found on system at: /usr/bin/ar
 > Using gcc version 4.6.1 found on system at: /usr/bin/gcc
 > Using haddock version 2.9.2 found on system at: /usr/bin/haddock
 > Using ld found on system at: /usr/bin/ld
 > Using pkg-config version 0.26 found on system at: /usr/bin/pkg-config
 > Using ranlib found on system at: /usr/bin/ranlib
 > Using strip found on system at: /usr/bin/strip
 > Using tar found on system at: /bin/tar

I don't believe that those tools are causing the errors that you're seeing, but
still it's a little worrying, especially use of /usr/bin/pkg-config.

I hope this helps,
Peter



More information about the nix-dev mailing list