Skip to content

[ifd] cabalProjectToNix #122

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

Merged
merged 12 commits into from
May 18, 2019
Merged

[ifd] cabalProjectToNix #122

merged 12 commits into from
May 18, 2019

Conversation

angerman
Copy link
Collaborator

This extracts the cabalProjectToNix function from #120 and trims the logic substantially.

@angerman
Copy link
Collaborator Author

@hamishmack I'll try to write a testcase for this as well. I've cut out quite a bit though.

@angerman angerman requested review from rvl and hamishmack May 13, 2019 07:41
@hamishmack hamishmack mentioned this pull request May 15, 2019
@angerman angerman force-pushed the angerman/hackage-index branch from dc6bb5c to 77c9696 Compare May 18, 2019 06:30
hamishmack and others added 11 commits May 18, 2019 14:41
- remove recentNixpkgs (this should rely on the provided (pinned)
  nixpkgs only.
- parameterize callProjectToNix over the indexState.  This prevents us
  from pulling it through the arguments and inheriting it evrywhere.
- keep hackage as the one from the hackageSourceJSON.  The reason
  being that we want a consistent hackage, and we periodically update
  it.  As such having a second way to generate this will increase the
  compexity of haskell.nix.  The indexState will almost always be
  behind the upstream hackageSourceJSON and as such generating the
  hackage nix expressions over just updating the hackageSourceJSON
  seems less beneficial.
@angerman angerman force-pushed the angerman/hackage-index branch from 77c9696 to 1ecd24e Compare May 18, 2019 09:40
@angerman angerman marked this pull request as ready for review May 18, 2019 13:57
@angerman angerman merged commit 52280f2 into master May 18, 2019
@rvl rvl mentioned this pull request Jun 15, 2019
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.

2 participants