From b39e491eb521d93ae983bc63b10efad3d147a9cd Mon Sep 17 00:00:00 2001 From: Thomas Tuegel Date: Sat, 25 Feb 2017 18:58:53 -0600 Subject: lib.makeScope: Save package set function --- lib/customisation.nix | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'lib/customisation.nix') diff --git a/lib/customisation.nix b/lib/customisation.nix index bedb91af773..a6c24f083a5 100644 --- a/lib/customisation.nix +++ b/lib/customisation.nix @@ -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; -- cgit 1.4.1