diff --git a/lib/customisation.nix b/lib/customisation.nix index bedb91af7735..a6c24f083a5b 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;