From d4c67764a7d4e5dbda611933005560cc5bfcfb3f Mon Sep 17 00:00:00 2001 From: Matt Sturgeon Date: Thu, 16 Jan 2025 02:53:27 +0000 Subject: [PATCH] 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. --- tests/nixpkgs-module.nix | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/tests/nixpkgs-module.nix b/tests/nixpkgs-module.nix index f592f349..ba04381b 100644 --- a/tests/nixpkgs-module.nix +++ b/tests/nixpkgs-module.nix @@ -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 ]; };