From 485d21f60d746039ba67a1fbb559b8aa0ff65700 Mon Sep 17 00:00:00 2001 From: Rob Hanlon <69870+robhanlon22@users.noreply.github.com> Date: Wed, 21 Feb 2024 14:40:49 -0800 Subject: [PATCH] Add _nixvimTests = false to flake.lib output (#1125) In my personal configuration, I rely on `nixvim.lib.${system}.helpers` to get access to things like `mkRaw` and `toLuaObject` for use in my extended `lib`. With the changes made in 6d7e429537ae8143d8405c44a61479248776758c, `nixvim.lib.${system}.helpers` can no longer be accessed directly from the `nixvim` input as `_nixvimTests` is not provided as an input attribute, so loading `helpers.nix` fails. This small change restores what I *think* is the intended behavior of this module --- lib/default.nix | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/default.nix b/lib/default.nix index 568de1a5..07ac594a 100644 --- a/lib/default.nix +++ b/lib/default.nix @@ -3,11 +3,12 @@ makeNixvim, makeNixvimWithModule, pkgs, + _nixvimTests ? false, ... } @ args: { # Add all exported modules here check = import ../tests/test-derivation.nix { inherit makeNixvim makeNixvimWithModule pkgs; }; - helpers = import ./helpers.nix args; + helpers = import ./helpers.nix (args // {inherit _nixvimTests;}); }