-
-
Notifications
You must be signed in to change notification settings - Fork 14.8k
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
ghcjs.ghcWithPackages
fails with "error: value is a path while a set was expected" for certain packages
#158600
Comments
I believe cc @dfordivam |
I wasn't sure which packages were bundled, so I tried 16 packages (one by one) from one of my projects. Here are the results:
|
cc @dfordivam |
@rzetterberg I tried this with latest nixpkgs and did not observe this issue. But I did observe another problem, the
|
Thanks for the reply, @dfordivam I haven't really been up to speed with the haskell ecosystem in nixpkgs, so I didn't even know about So, If I understand it correctly, I could take something like this: haskell_env = pkgs.haskell.packages.ghcjs.ghcWithPackages (p: with p; [
base cabal-install reflex reflex-dom
]); And instead use something like this: haskell_env = pkgs.haskell.packages.ghcjs.developPackage {
root = ./.;
withHoogle = false;
modifier = drv:
pkgs.haskell.lib.addBuildTools drv (with pkgs.haskellPackages; [
base cabal-install reflex reflex-dom
]);
}; And that should give me the ability to build a project with |
Here's the result for me when I tried the example you provided @dfordivam
|
Fixes evaluation of haskell.compiler.ghcjs.withPackages. Reference #158600.
This seems to be fixed by a964dca, for the evaluation part, as now a The remaining problem is that, well, |
I've tried building a few environments with ghcjs and everything seems to be working as expected. Note that none of the examples you have given in your comment can be expected to work, however, as they all depend on |
Thank you, @sternenseemann! 🥇 |
Describe the bug
When I run:
I get the following error:
This problem does not happen if I run:
then the compilation starts, like expected. Same thing if I provide an empty list of packages.
Notify maintainers
Maintainers from haskell team: @cdepillabout, @expipiplus1, @maralorn, @sternenseemann
Metadata
Please run
nix-shell -p nix-info --run "nix-info -m"
and paste the result.The text was updated successfully, but these errors were encountered: