plugins: do not import helpers.nix directly

This commit is contained in:
Gaetan Lepage 2024-02-09 14:31:04 +01:00 committed by Gaétan Lepage
parent 9f3bbca7f1
commit 7dbf7f978c
13 changed files with 83 additions and 119 deletions

View file

@ -303,7 +303,7 @@ with lib; let
name = "ltex";
description = "ltex-ls for LanguageTool";
package = pkgs.ltex-ls;
settingsOptions = import ./ltex-settings.nix {inherit lib;};
settingsOptions = import ./ltex-settings.nix {inherit lib helpers;};
settings = cfg: {ltex = cfg;};
}
{

View file

@ -1,7 +1,8 @@
{lib}:
with lib; let
helpers = import ../../helpers.nix {inherit lib;};
in {
{
lib,
helpers,
}:
with lib; {
enabled =
helpers.defaultNullOpts.mkNullable
(with types; either bool (listOf str))