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

How to include build-tool-depends in shellFor ghc pkgs? #760

Closed
dddenis opened this issue Jul 12, 2020 · 2 comments
Closed

How to include build-tool-depends in shellFor ghc pkgs? #760

dddenis opened this issue Jul 12, 2020 · 2 comments
Assignees
Labels
bug Something isn't working duplicate This issue or pull request already exists

Comments

@dddenis
Copy link

dddenis commented Jul 12, 2020

Hi,

I am trying to use haskell.nix on a project with c2hs defined in build-tool-depends.
It builds correctly, but when I try to integrate haskell-ide-engine in shellFor environment, which uses cabal underneath - I get:

2020-07-12 11:33:34.659885955 [ThreadId 14] - cabal: Could not resolve dependencies:
2020-07-12 11:33:34.659905655 [ThreadId 14] - [__0] trying: haskell-nix-c2hs-0.1.0.0 (user goal)
2020-07-12 11:33:34.659924375 [ThreadId 14] - [__1] unknown package: haskell-nix-c2hs:c2hs:exe.c2hs (dependency of
2020-07-12 11:33:34.659943695 [ThreadId 14] - haskell-nix-c2hs)
2020-07-12 11:33:34.659960355 [ThreadId 14] - [__1] fail (backjumping, conflict set: haskell-nix-c2hs,
2020-07-12 11:33:34.659977975 [ThreadId 14] - haskell-nix-c2hs:c2hs:exe.c2hs)
2020-07-12 11:33:34.659994695 [ThreadId 14] - After searching the rest of the dependency tree exhaustively, these were the
2020-07-12 11:33:34.660012995 [ThreadId 14] - goals I've had most trouble fulfilling: haskell-nix-c2hs,
2020-07-12 11:33:34.660029935 [ThreadId 14] - haskell-nix-c2hs:c2hs:exe.c2hs

Is it possible to let cabal in shellFor environment know of c2hs existence?

Here is a minimal demo repo: https://github.com/dddenis/haskell-nix-c2hs

@rvl rvl self-assigned this Sep 8, 2020
@rvl rvl added bug Something isn't working duplicate This issue or pull request already exists labels Sep 8, 2020
@rvl
Copy link
Contributor

rvl commented Sep 8, 2020

Thanks for the report @dddenis - this is the same issue as #231.

@rvl rvl closed this as completed Sep 8, 2020
@codygman
Copy link

codygman commented Aug 7, 2022

The latest state of this issue seems to be: #1367 (comment)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working duplicate This issue or pull request already exists
Projects
None yet
Development

No branches or pull requests

3 participants