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 // { let self = f self // {
newScope = scope: newScope (self // scope); newScope = scope: newScope (self // scope);
callPackage = self.newScope {}; callPackage = self.newScope {};
override = g: makeScope newScope (self_: override = g:
let super = f self_; makeScope newScope
in super // g super self_); (self_: let super = f self_; in super // g super self_);
packages = f;
}; };
in self; in self;