-
Notifications
You must be signed in to change notification settings - Fork 19
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
Document that cabal.project
is used only for packages
#212
Comments
|
cabal.project
source-repository-package
might be ignoredcabal.project
is used only for packages
Yea, this is not supported, but we should document it clearly. You want to specify those source dependencies as flake inputs instead: https://community.flake.parts/haskell-flake/dependency#path |
Thanks, https://community.flake.parts/haskell-flake/dependency#path works great. In some cases, if the
That contradicts the example I started this issue with, where In the example project with build error, removing Can |
haskell-flake itself ignores everything but In your first project, your only local package lives at project root, hence haskellProjects.default = {
packages.halogen-chess.source = builtins.path { path = ./.; filter = path: _: baseNameOf path != "cabal.project";;
} (Perhaps we should have a |
You're correct, thanks! Moving I can't get the second solution working; these cause
|
I'm going to try to reproduce this with the fundamental Cabal has an
still results in
The |
It needs to be But yea, leveraging the |
Thanks for your time, @srid |
I appreciate
haskell-flake
's support forcabal.project
. I think it might be ignoringsource-repository-package
: https://cabal.readthedocs.io/en/stable/cabal-project.html#specifying-packages-from-remote-version-control-locationshaskell-multi-nix
with example:https://github.com/peterbecich/haskell-multi-nix/tree/source-repository-package-example
https://github.com/peterbecich/haskell-multi-nix/blob/source-repository-package-example/cabal.project
This should attempt to pull
haskell/text
bogus commit123
cabal.project
cabal build all
fails as it should. However,nix build
succeeds; I think it is gettingtext
from NixPkgs as usual.Cabal pulls the real commit
73620de
correctly.nix build
doesn't indicate if it is pulling this commit or not.I know the
text
dependency could be specified inflake.nix
: https://community.flake.parts/haskell-flake/dependency/#pathThank you
The text was updated successfully, but these errors were encountered: