[Nix-dev] nix-shell with overlay?
Nicolas Pierron
nicolas.b.pierron at nbp.name
Wed Mar 8 22:16:08 CET 2017
On Wed, Mar 8, 2017 at 11:01 AM, Benno Fünfstück
<benno.fuenfstueck at gmail.com> wrote:
> Nicolas Pierron <nicolas.b.pierron at nbp.name> schrieb am Mi., 8. März 2017,
> 01:30:
>>
>> nit: super.callPackage, as the super.callPackage *function* already
>> aliases self packages. Otherwise, you would be going twice through
>> the fix-point.
>
> What if someone later wants to override callPackage?
Later, this person would have to face the fact that security updates
are not applied.
The documentation is clear that if this is a function or a recipe,
then it should be coming from `super`, if this is a dependency it
should come from `self`. `callPackage` is a function, which captures
`self` to provide default dependencies, so it should be taken out of
`super`.
--
Nicolas Pierron
http://www.linkedin.com/in/nicolasbpierron - http://nbp.name/
More information about the nix-dev
mailing list