Skip to content

Commit d4c6776

Browse files
committed
tests/nixpkgs-module: only import the minimal modules for test
Instead of importing the full set of top-level nixvim modules, only import the nixpkgs-module and its direct dependencies.
1 parent e13b2a5 commit d4c6776

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

tests/nixpkgs-module.nix

+7-1
Original file line numberDiff line numberDiff line change
@@ -10,18 +10,24 @@ let
1010

1111
defaultPkgs = pkgs;
1212

13+
# Only imports the bare minimum modules, to ensure we are not accidentally evaluating `pkgs.*`
1314
evalModule =
1415
name: module:
15-
lib.nixvim.modules.evalNixvim {
16+
lib.evalModules {
1617
modules = lib.toList module ++ [
1718
{
19+
_module.check = false;
20+
flake = self;
1821
test = {
1922
inherit name;
2023
buildNixvim = false;
2124
runNvim = false;
2225
runCommand = runCommandLocal;
2326
};
2427
}
28+
../modules/misc
29+
../modules/top-level/test.nix
30+
../modules/top-level/nixpkgs.nix
2531
];
2632
};
2733

0 commit comments

Comments
 (0)