-
-
Notifications
You must be signed in to change notification settings - Fork 14.4k
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
[Tracking] Review package examples from manual #253291
Comments
Most of them are using
Seems that they aren't run through a formatter either. I'm by no means an expert, but the first one looks good to me (except the |
Additionally, GNU Hello package was deleted or moved, so the first link shows 404 error. |
@mjarosie the unstable nixpkgs manual has moved the docs to a new location the hello example is here now |
I read today this part of our docs: https://nixos.org/manual/nixpkgs/unstable/#mkderivation-recursive-attributes And it is not stated firmly whether using a function as an |
Don't both use |
You are right, I wasn't clear, that " |
For what it's worth, I think part of the problem is that many builders still do not support explicitly-recursive attrsets. #234651 introduces helpers which would make it much easier to support the pattern in all builders, FWIW |
It's worth considering the eval time impact to nixpkgs as a whole too. I don't quite remember where, but I vaguely recall reading that a not-insignificant portion of the eval time is from derivations utilizing the |
Issue description
We teach packaging using examples, but i think these examples don't follow latest best practices.
https://nixos.org/manual/nixpkgs/stable/#chap-quick-start
One thing is that in
src
it often usessha256 =
instead ofhash =
which is used in the Fetching Sources section. The manual should provide consistent information.The text was updated successfully, but these errors were encountered: