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

Fetch the revised cabal files as part of elaborating hackage.nix #1860

Closed

Conversation

andreabedini
Copy link
Member

Fixes #1857.

When we call cabal-plan-to-nix, we obtain the set of revised cabal files directly from the plan (which, in turn, are obtained from the index tarball). A stackage snapshot does not involve any planning and simply refers to specific hackage revisions (intentified by their hash and number). In this case we still need to obtain the revised cabal file from hackage before building packages.

Rather than putting this logic back in the builder (as it was before #1775), I suggest we put it into the layer that processes hackage.nix. The reason is that the builder should be agnostic about where a package comes from; in constrast, while processing hackage, we can be sure about where packages are from!

@hamishmack
Copy link
Collaborator

Merged in #1882

@hamishmack hamishmack closed this Mar 28, 2023
@andreabedini andreabedini deleted the fix-stackage branch May 24, 2024 10:05
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

Successfully merging this pull request may close these issues.

Haskell.nix cannot build stackage packages
2 participants