Skip to content
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

In Haskell packages, nix-build succeeds but nix-shell then evaluating the build phases fails #6401

Closed
pikajude opened this issue Feb 17, 2015 · 2 comments

Comments

@pikajude
Copy link
Contributor

Still working on a minimal test case. Right now I can successfully reproduce with https://github.com/joelteon/joelt.io. In shell.nix, shellHook is set to (what I think is) the setup phases for Haskell module building. If I invoke nix-shell, I'm given this (failing) output. If I change shellHook to preBuild in shell.nix and nix-build shell.nix, it successfully starts the REPL.

  1. How does cabal know that exceptions 0.6.1 or 0.7 exist, for example?
  2. Why doesn't the failure happen during nix-build?
@pikajude
Copy link
Contributor Author

dtruss of the Setup executable during configure: https://gist.githubusercontent.com/anonymous/6c05a921005f9fa2223c/raw/c5405ea1b02c70a8f4d11979acc8381527e35cbf/-

as you can see, it not only has exceptions-0.6.1 in a package configuration, but also passes a nonexistent exceptions-0.6.1 directory to the linker.

@pikajude
Copy link
Contributor Author

Caused by NixOS/nix#395

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants