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;