mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-09-21 20:49:52 +03:00
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; }
This commit is contained in:
parent
7ad31a337a
commit
135f263b39
@ -5,7 +5,7 @@
|
|||||||
* to merges. Please use the full-text search of your editor. ;)
|
* to merges. Please use the full-text search of your editor. ;)
|
||||||
* Hint: ### starts category names.
|
* Hint: ### starts category names.
|
||||||
*/
|
*/
|
||||||
{ lib, noSysDirs, config}:
|
{ lib, noSysDirs, config, overlays }:
|
||||||
res: pkgs: super:
|
res: pkgs: super:
|
||||||
|
|
||||||
with pkgs;
|
with pkgs;
|
||||||
@ -61,7 +61,7 @@ in
|
|||||||
|
|
||||||
|
|
||||||
### Helper functions.
|
### Helper functions.
|
||||||
inherit lib config;
|
inherit lib config overlays;
|
||||||
|
|
||||||
inherit (lib) lowPrio hiPrio appendToName makeOverridable;
|
inherit (lib) lowPrio hiPrio appendToName makeOverridable;
|
||||||
|
|
||||||
|
@ -90,7 +90,7 @@ let
|
|||||||
|
|
||||||
allPackages = self: super:
|
allPackages = self: super:
|
||||||
let res = import ./all-packages.nix
|
let res = import ./all-packages.nix
|
||||||
{ inherit lib noSysDirs config; }
|
{ inherit lib noSysDirs config overlays; }
|
||||||
res self super;
|
res self super;
|
||||||
in res;
|
in res;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user