Open chessai opened 4 years ago
@chessai thanks for the report.
I believe there is some loop logic missing in haskell.nix to get the right packages into the store. We had a similar issue with sub libraries; I would hope backpack is just a similar issue, and with the sub library logic in place should be rectifiable.
@angerman Your description of what's happening makes sense to me based on the error message.
Currently this is the only thing blocking me from switching to haskell.nix at work. Though, my experience with haskell.nix thus far has been extremely positive as an alternative to the default nixpkgs infrastructure, so thanks to you and everyone working on it. My coworkers (who are less nix-inclined) are very excited after I've mentioned to them its benefits over the currently painful nixpkgs situation.
reproducible (but not minimal) example: https://github.com/andrewthad/sockets
The library builds fine with just
nix-shell -p haskell.compiler.ghc865 cabal-install --run "cabal new-build"
.It's also important to note that the library does build with nixpkgs' haskell infrastructure, although the dependencies end up mangled; cabal (new-)configure fails, but runhaskell succeeds.