summary refs log tree commit diff
path: root/lib/customisation.nix
diff options
context:
space:
mode:
authorThomas Tuegel <ttuegel@mailbox.org>2017-02-25 18:58:53 -0600
committerThomas Tuegel <ttuegel@mailbox.org>2017-02-27 11:49:43 -0600
commitb39e491eb521d93ae983bc63b10efad3d147a9cd (patch)
tree579ac6ac31d89e1fb1917f56f852ba5eed01cb18 /lib/customisation.nix
parente21b5da6305ec15b65ad398106efe39f290a4095 (diff)
downloadnixpkgs-b39e491eb521d93ae983bc63b10efad3d147a9cd.tar
nixpkgs-b39e491eb521d93ae983bc63b10efad3d147a9cd.tar.gz
nixpkgs-b39e491eb521d93ae983bc63b10efad3d147a9cd.tar.bz2
nixpkgs-b39e491eb521d93ae983bc63b10efad3d147a9cd.tar.lz
nixpkgs-b39e491eb521d93ae983bc63b10efad3d147a9cd.tar.xz
nixpkgs-b39e491eb521d93ae983bc63b10efad3d147a9cd.tar.zst
nixpkgs-b39e491eb521d93ae983bc63b10efad3d147a9cd.zip
lib.makeScope: Save package set function
Diffstat (limited to 'lib/customisation.nix')
-rw-r--r--lib/customisation.nix7
1 files changed, 4 insertions, 3 deletions
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;