[Nix-dev] Difference between Pkgs, Super and Self in this Snippet

Roger Qiu roger.qiu at matrix.ai
Mon Apr 11 09:34:00 CEST 2016


Hi,

Here's a snippet of config.nix.

```
{ pkgs }: { # pkgs is the fully configured packages, after overrides
   packageOverrides = super: let self = super.pkgs; in rec { # super is 
without overrides, self is with
     # ... overrides go here ...
   };
}
```

While I understand that `super` is the package set that hasn't been 
overridden yet, what's the difference between `self` and `pkgs`? Do both 
of them have the overrides applied?

Thanks,
Roger

-- 
Founder of Matrix AI
https://matrix.ai/
+61420925975



More information about the nix-dev mailing list