mirror of
https://github.com/nix-community/nixvim.git
synced 2025-06-22 08:53:28 +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;
|
defaultPkgs = pkgs;
|
||||||
|
|
||||||
|
# Only imports the bare minimum modules, to ensure we are not accidentally evaluating `pkgs.*`
|
||||||
evalModule =
|
evalModule =
|
||||||
name: module:
|
name: module:
|
||||||
lib.nixvim.modules.evalNixvim {
|
lib.evalModules {
|
||||||
modules = lib.toList module ++ [
|
modules = lib.toList module ++ [
|
||||||
{
|
{
|
||||||
|
_module.check = false;
|
||||||
|
flake = self;
|
||||||
test = {
|
test = {
|
||||||
inherit name;
|
inherit name;
|
||||||
buildNixvim = false;
|
buildNixvim = false;
|
||||||
|
@ -22,6 +25,9 @@ let
|
||||||
runCommand = runCommandLocal;
|
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