diff options
author | Daiderd Jordan <daiderd@gmail.com> | 2019-02-23 10:59:58 +0100 |
---|---|---|
committer | Daiderd Jordan <daiderd@gmail.com> | 2019-02-23 11:09:45 +0100 |
commit | 135f263b396146d739f383c53e45d623be1099e6 (patch) | |
tree | 650fc0c9d76b7630e492aa528fecfe30afbd16f8 /pkgs/top-level/stage.nix | |
parent | 7ad31a337a56ff6b10fa7100b86a3732c7e19e42 (diff) |
pkgs/top-level: expose current overlays in pkgs
This enables inspection of the currently used overlays. Useful for
usecases where nixpkgs is imported multiple times.
eg. different channels
self: super:
let
latest = import <nixpkgs-trunk> {
inherit (super) config overlays;
};
in
{
hello-custom-latest = latest.hello-custom;
}
Diffstat (limited to 'pkgs/top-level/stage.nix')
-rw-r--r-- | pkgs/top-level/stage.nix | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/pkgs/top-level/stage.nix b/pkgs/top-level/stage.nix index 6ca370e0b9b7..e8c8175d737f 100644 --- a/pkgs/top-level/stage.nix +++ b/pkgs/top-level/stage.nix @@ -90,7 +90,7 @@ let allPackages = self: super: let res = import ./all-packages.nix - { inherit lib noSysDirs config; } + { inherit lib noSysDirs config overlays; } res self super; in res; |