Replies: 2 comments 1 reply
|
Indeed, I did misunderstand here, I thought |
0 replies
|
Thanks for the feedback ❤️ I have updated the content. Please take a look when you are free. |
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Hi, thanks for the fantastic resource on all things Nix! I'm reading the chapter on callPackage and I'm wondering if some details are incorrect or misleading:
In the second paragraph it states that the imported file "must be a Derivation or a function that returns a Derivation.", but I don't think the former case is valid (as far as I see, the imported file must be a function). Less importantly, it also states that you should give
callPackagea file as input, but this is not the case; directly giving a function is fine too.The fourth paragraph starts to explain what happens if it the imported file gives a function, leaving me to expect an explanation of the other case to come later, but it never does explain any other cases.
All reactions