mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-26 08:53:21 +00:00
lib.makeScope: Save package set function
This commit is contained in:
parent
e21b5da630
commit
b39e491eb5
@ -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;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user