-
Notifications
You must be signed in to change notification settings - Fork 233
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
source-repository-package stanzas in conditionals don't work #1943
Comments
Yes, I am not surprised. Thanks for reporting this. |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
Wait, is this actually fixed? @andreabedini |
The latest release of HLS has a conditional stanza for 9.8 that includes head.hackage, and as such isn't buildable (from the repository) with haskell.nix because of this issue. |
@andreabedini for my understanding. The issue is an additional conditional compiler stanza, in the cabal.project file, which then ends up prohibiting us from going forward, even if it's completely irrelevant to the build? |
It look like we just ignore it, so the example above would work with |
Yes, exactly. The situation is:
|
This also applies to things like repository stanzas. |
e.g.
We fail to replace this, so even if you have a
sha256map
it fails trying to access the network.Not surprising give out ad-hoc parser in Nix. Probably the best way to fix it is to continue pulling stuff into Haskell where we can use cabal's parser, cc @andreabedini
The text was updated successfully, but these errors were encountered: