-
-
Notifications
You must be signed in to change notification settings - Fork 14.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
haskell: Use propagatedUserEnvPkgs? #1230
Comments
The
contains everything that's required to re-build xmonad. |
So does that mean ghc-wrapper is useless if I do not install each dependency in systemPackages? Because when I don't, packages are broken? |
Well, ghc-wrapper is certainly not useless, and it certainly doesn't install any broken packages. It just doesn't do what you expected it to. The wrapper provides a compiler that knows exactly those packages that are installed in the same profile it itself has been installed in. If that is not what you want, then you should probably use a different solution, such as the |
If |
Personally, I don't feel strongly about this issue either way: I don't use If you guys think that the wrapper (or the cabal builder) should be changed, then by all means go ahead! |
@peti: the behavior has changed recently. I use this for XMonad, too. Now it's unusable -- ghci -v shows things like
|
What I completely fail to see is: what use a haskell module can be if its dependencies are missing? |
@vcunat, if you guys want to change the wrapper or the Cabal builder to remedy this issue, then please do. I am all for it! All I care about is that the change doesn't break anything for users of |
Solved by ebdff38. |
Currently, when installing haskell libraries via Nix, only the library itself is linked to
/run/current-system/sw/lib/ghc-7.6.3/XXXX
. This caused me some issues using cabal sandbox, where I had installedxmonad
, but it's dependencies weren't found:I think this could be solved by adding a
propagatedUserEnvPkgs
attribute inbuild-support/cabal/default.nix
. But I'm not sure, is this the right solution? Or is there a better solution?The text was updated successfully, but these errors were encountered: