In nix, overlay is a function with 2 arguments: self
and super
. Based on the manual, self
corresponds to the final package set (or some others call it result of the fix point calculation) and only to be used when dealing with dependencies. While super
is the result of the evaluation of the previous stages of nixpkgs
and only to be used when you refer to packages you want to override or to access certain function.
Sadly I don't really understand this. In what way that the nixpkgs
gets updated by the overlays such that there's 2 restriction mentioned above?
self
is only to be used when dealing with dependencies,super
is only to be used when we need to refer to packages or to use certain function.