lib: Use lib.fixed-points.extends to avoid repetition

This commit is contained in:
John Ericson 2018-07-06 16:17:54 -04:00
parent 0299641c91
commit 48ccdf322d

View file

@ -202,7 +202,7 @@ rec {
callPackage = self.newScope {}; callPackage = self.newScope {};
overrideScope = g: overrideScope = g:
makeScope newScope makeScope newScope
(self_: let super = f self_; in super // g super self_); (lib.fixed-points.extends f g);
packages = f; packages = f;
}; };
in self; in self;