mirror of
https://github.com/nix-community/nixvim.git
synced 2025-06-21 00:25:42 +02:00
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.
This commit is contained in:
parent
e13b2a5129
commit
d4c67764a7
1 changed files with 7 additions and 1 deletions
|
@ -10,11 +10,14 @@ let
|
|||
|
||||
defaultPkgs = pkgs;
|
||||
|
||||
# Only imports the bare minimum modules, to ensure we are not accidentally evaluating `pkgs.*`
|
||||
evalModule =
|
||||
name: module:
|
||||
lib.nixvim.modules.evalNixvim {
|
||||
lib.evalModules {
|
||||
modules = lib.toList module ++ [
|
||||
{
|
||||
_module.check = false;
|
||||
flake = self;
|
||||
test = {
|
||||
inherit name;
|
||||
buildNixvim = false;
|
||||
|
@ -22,6 +25,9 @@ let
|
|||
runCommand = runCommandLocal;
|
||||
};
|
||||
}
|
||||
../modules/misc
|
||||
../modules/top-level/test.nix
|
||||
../modules/top-level/nixpkgs.nix
|
||||
];
|
||||
};
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue