We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
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:
build-tool-depends:
hspec
hspec-discover
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.
The text was updated successfully, but these errors were encountered:
(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)
Sorry, something went wrong.
It seems I misunderstood how this gets propagated through haskell.nix. Closing.
No branches or pull requests
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 usinghspec
rely onhspec-discover
, and should have a stanza:cabal-to-nix should generate dependencies on the specified executable component for components with the build-tool-depends field.
The text was updated successfully, but these errors were encountered: