[Nix-dev] unable to expose libraries internal to GHC?

Corey O'Connor coreyoconnor at gmail.com
Mon Apr 14 03:17:45 CEST 2014


My system is unable to locate haskell packages that are internal to ghc.
EG: xhtml, terminfo While I can install new version of these packages to a
user package database via cabal I cannot expose them as part of a haskell
environment using ghcWithPackages. For convenience with C library
dependencies I'd like to avoid cabal install to a user package database.

How can these internal packages be exposed in the haskell environment's
package database? Or how can the shared library conflict below be resolved?

The config I am using is here:
https://github.com/coreyoconnor/nix_configs/blob/master/haskell-dev.nix

Which is GHC 7.8.2 with ghcWithPackages.

The packages that are not included with GHC are correctly exposed in the
system's haskell environment. ghc-pkg lists them and Cabal can use them for
builds. If I try to include a library that is shipped with GHC the haskell
environment builder fails to add both shared libraries to the resulting
environment.

collision between
`/nix/store/sx2fysd8hfhvjj3grmx24z0igb8rswyw-ghc-7.8.2/lib/ghc-7.8.2/terminfo-0.4.0.0/
libHSterminfo-0.4.0.0-ghc7.8.2.so' and
`/nix/store/9xxnnzj85vdrklzf9q14jllhj01232xk-haskell-terminfo-ghc7.8.2-0.4.0.0-profiling-shared/lib/ghc-7.8.2/terminfo-0.4.0.0/
libHSterminfo-0.4.0.0-ghc7.8.2.so' at /nix/store/
9z6d76pz8rr7gci2n3igh5dqi7ac5xqj-builder.pl line 72.


-Corey O'Connor
coreyoconnor at gmail.com
http://corebotllc.com/
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.science.uu.nl/pipermail/nix-dev/attachments/20140413/2029e979/attachment-0001.html 


More information about the nix-dev mailing list