Skip to content

Commit caa64ca

Browse files
committed
expose finalPkgs directly
nix-community#273
1 parent 4e21c04 commit caa64ca

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

default.nix

+4-2
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,8 @@
99
let
1010
inherit (lib) mkOption types;
1111

12+
finalPkgs = pkgs.appendOverlays config.nixpkgs.overlays;
13+
1214
eval = (lib.evalModules {
1315
modules = [
1416
({ config, ... }: {
@@ -20,7 +22,6 @@ let
2022

2123
config = {
2224
_module.args = let
23-
finalPkgs = pkgs.appendOverlays config.nixpkgs.overlays;
2425
apks = import ./apks { pkgs = finalPkgs; };
2526
robotnixlib = import ./lib lib;
2627
in {
@@ -82,7 +83,8 @@ let
8283
else lib.showWarnings eval.config.warnings eval.config;
8384

8485
in {
85-
inherit (eval) pkgs options;
86+
inherit (eval) options;
87+
inherit finalPkgs;
8688
inherit config;
8789

8890
# Things that are nice to have at the top-level, since they might get moved

0 commit comments

Comments
 (0)