lib.makeScope: Save package set function

This commit is contained in:
Thomas Tuegel 2017-02-25 18:58:53 -06:00
parent e21b5da630
commit b39e491eb5
No known key found for this signature in database
GPG Key ID: 22CBF5249D4B4D59

View File

@ -177,9 +177,10 @@ rec {
let self = f self // {
newScope = scope: newScope (self // scope);
callPackage = self.newScope {};
override = g: makeScope newScope (self_:
let super = f self_;
in super // g super self_);
override = g:
makeScope newScope
(self_: let super = f self_; in super // g super self_);
packages = f;
};
in self;