Skip to content

cabal-to-nix doesn't respect build-tool-depends field #152

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

Closed
eamsden opened this issue May 28, 2019 · 2 comments
Closed

cabal-to-nix doesn't respect build-tool-depends field #152

eamsden opened this issue May 28, 2019 · 2 comments

Comments

@eamsden
Copy link
Contributor

eamsden commented May 28, 2019

Cabal has a field build-tool-depends: (see the cabal user guide: https://www.haskell.org/cabal/users-guide/developing-packages.html#pkg-field-build-tool-depends) which specifies Haskell executables needed at build-time. For instance, many test suites using hspec rely on hspec-discover, and should have a stanza:

test-suite spec
  ...
  build-tool-depends: hspec:hspec-discover

cabal-to-nix should generate dependencies on the specified executable component for components with the build-tool-depends field.

@eamsden
Copy link
Contributor Author

eamsden commented May 28, 2019

(I filed this here because it seems likely to require updates both to cabal-to-nix as well as to the module structure of haskell.nix)

@eamsden
Copy link
Contributor Author

eamsden commented May 28, 2019

It seems I misunderstood how this gets propagated through haskell.nix. Closing.

@eamsden eamsden closed this as completed May 28, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant