Hi Peter, On 15/06/2014 21:12, Peter Simons wrote:
> you are right: the environment variable $NIX_LDFLAGS ensures that GCC > can find libz (and other systems libraries), which is why "cabal > configure" succeeds. But this won't help GHC locate those libraries, > because it doesn't know about that variable. I guess, we could create a > wrapper around cabal-install to remedy that issue. Right - or could it be added to the ghc wrapper? It seems logical for it to get the same behaviour as gcc, but I still haven't got a good intuition for how this information naturally flows in nix. > Anyway, a simple work-around for this problem is to call: > [...] Thanks for the workarounds, I'll have a play with them and see which one works best for me. > export LD_LIBRARY_PATH+=:${self.zlib}/lib Out of interest, why doesn't nix/nixpkgs set LD_LIBRARY_PATH in the first place? Cheers, Ganesh _______________________________________________ nix-dev mailing list nix-dev@lists.science.uu.nl http://lists.science.uu.nl/mailman/listinfo/nix-dev