Clarify the description of "callPackage"
Opened this issue · 1 comments
With reference to:
Lines 578 to 580 in 1cf10d3
Looking specifically at the phrase "the set in which it is defined" it isn't clear:
-
What is "it"? (the callpackage function?)
-
Which set is being described?
The callpackage function does not appear to be defined as part of a set in this example:
Lines 572 to 575 in 1cf10d3
This is about the set from which you got the callPackage
function, so in the case of pkgs.callPackage
, "it" is that function itself, and the set is pkgs
.
There are callPackage
functions in multiple different sets (e.g. inside of pkgs.haskellPackages
, pkgs.emacsPackages
and so on) which all are capable of calling packages with the stuff defined in the set that they themselves are in.
Gonna think about a way to rephrase that ... ideas welcome!