-
-
Notifications
You must be signed in to change notification settings - Fork 14.5k
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
doc/haskell: begin bringing back haskell documentation to the nixpkgs manual #126674
Conversation
Haskell infrastructure in nixpkgs for development environments in | ||
many cases. The main limitations are that we only provide first-class | ||
support for the default compiler (currently GHC 8.10.4) and usually | ||
only provide a default and (if different) the latest version of |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
latest being hackage (!= hackage) ?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
it's explained later on so I understand that if the package is on stackage, then the version is not necessarily the latest ?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yeah, I want to explain this in more detail in the section “Package Set Generation”. Basically we use the latest version of every package from hackage by default unless it is part of stackage or there has been a pin manually set up. In those cases we use the manual version constraint or the one from stackage to get the version of the standard attribute and additionally generate an attribute package-name_A_B_C_D
which points to the latest version from hackage.
nice to have document this. I feel like this can be improved over time without necessarily having all in one PR. |
My current stance on this is that I'd like to accurately describe our infrastructure as well as its limitation, but I wouldn't like to link / endorse a third party project that is mostly run by a single company. Also this will probably just end with people coming to nixpkgs for their haskell.nix issues. |
We had a video chat about what sections we want in our documentation. So far, these sections have been completed in this PR:
Here are the sections that are left to do, along with who volunteered to write them:
Keep in mind that this is a very rough list, so there is likely to be big changes and reorganization. Another important thing is that @maralorn suggested we follow the Divio documentation system: https://documentation.divio.com/ We should keep these four types of documentation in mind as we are writing this manual. |
6bba508
to
a6c22b8
Compare
a6c22b8
to
7ce364d
Compare
|
This pull request has been mentioned on NixOS Discourse. There might be relevant details there: https://discourse.nixos.org/t/why-are-these-derivations-so-different/18257/4 |
|
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Absolutely great. Can‘t wait to see this merged so that we can all elaborate on it.
|
Request to document |
12b8d0d
to
e77acd0
Compare
This restarts a Haskell section in the nixpkgs manual. The content presented here has been written from scratch, although some parts of it take inspiration from the existing haskell4nix documentation. It is by no means complete, the idea is mostly to get the ball rolling in some way. Upcoming tasks are hinted at in the comments in the documentation file.
343c913
to
590f40b
Compare
In case this PR's comments get used for future reference, is this issue https://gist.github.com/ScottFreeCode/ef9f254e2dd91544bba4a068852fc81f ? |
Motivation for this change
Reopened #126382 with a branch in NixOS/nixpkgs, so we can have PRs against this branch more easily.
@cdepillabout can you post our projected TOC in the comments here?
Things done
sandbox
innix.conf
on non-NixOS linux)nix-shell -p nixpkgs-review --run "nixpkgs-review wip"
./result/bin/
)