[Nix-dev] nix-shell with overlay?

Profpatsch mail at profpatsch.de
Wed Mar 8 02:42:35 CET 2017


On 17-03-08 01:29am, Nicolas Pierron wrote:
> >> import <nixpkgs> {
> >>   overlays: [(self: super: {
> >>     myDep = super.myDep.override {
> >>       …
> >>     };
> >>     myPkg = self.callPackage ./. {};
> 
> nit: super.callPackage, as the super.callPackage *function* already
> aliases self packages.  Otherwise, you would be going twice through
> the fix-point.

Wait, super.callPackage will already have myDep with overrides?
Doesn’t that make the Definition of callPackage questionable?

-- 
Proudly written in Mutt with Vim on NixOS.
Q: Why is this email five sentences or less?
A: http://five.sentenc.es
May take up to five days to read your message. If it’s urgent, call me.


More information about the nix-dev mailing list