diff options
author | Thomas Tuegel <ttuegel@mailbox.org> | 2017-02-25 18:58:53 -0600 |
---|---|---|
committer | Thomas Tuegel <ttuegel@mailbox.org> | 2017-02-27 11:49:43 -0600 |
commit | b39e491eb521d93ae983bc63b10efad3d147a9cd (patch) | |
tree | 579ac6ac31d89e1fb1917f56f852ba5eed01cb18 /lib/customisation.nix | |
parent | e21b5da6305ec15b65ad398106efe39f290a4095 (diff) | |
download | nixpkgs-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.nix | 7 |
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; |