-
-
Notifications
You must be signed in to change notification settings - Fork 114
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
14.2 not as obvious as expected #179
Comments
I agree that it isn't at all obvious from the example given - it's a little bit shorter, but that's it. There is however a distinct advantage to using overrides: it's not supposed to be a joke. The more important part of the message above the example is
The difference would be better exemplified when the derivation you want to customize already has custom arguments. Say the original graphviz = callPackage ./graphviz.nix { bzip2 = customBzip2; }; Creating the customized derivation from scratch would then have to be done like this: mygraphviz = callPackage ./graphviz.nix { gd = customgd; bzip2 = customBzip2; }; Forgetting to specify the custom mygraphviz = graphviz.override { gd = customgd; }; |
Section 14.2 mentions:
While the difference is described above:
I wasn't sure what the advantages are. (or is it a joke?) Some clarification about why would I care about the difference above would be great.
The text was updated successfully, but these errors were encountered: