Skip to content

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