modules: drop helpers alias
Deprecated since 25.11.
This commit is contained in:
parent
909aa0a782
commit
01bd278849
4 changed files with 2 additions and 26 deletions
|
|
@ -48,12 +48,6 @@ in
|
|||
# however see https://github.com/nix-community/nixvim/issues/2879
|
||||
inherit lib;
|
||||
modulesPath = ../modules;
|
||||
# TODO: deprecated 2025-11-19
|
||||
helpers = lib.warn ''
|
||||
nixvim: the `helpers` module arg has been renamed to `lib.nixvim`.
|
||||
Nixvim modules can access this via the `lib` module arg.
|
||||
For wrapper modules (e.g. NixOS or Home Manager modules), see:
|
||||
https://nix-community.github.io/nixvim/lib/nixvim/index.html#accessing-nixvims-functions'' self;
|
||||
}
|
||||
// extraSpecialArgs;
|
||||
};
|
||||
|
|
|
|||
|
|
@ -11,18 +11,13 @@ let
|
|||
name = "enable-except-in-tests-test";
|
||||
inherit pkgs;
|
||||
module =
|
||||
{ lib, helpers, ... }:
|
||||
{ lib, ... }:
|
||||
{
|
||||
assertions = [
|
||||
{
|
||||
assertion = !lib.nixvim.enableExceptInTests;
|
||||
message = "Expected lib.nixvim.enableExceptInTests to be false";
|
||||
}
|
||||
{
|
||||
# NOTE: evaluating `helpers` here prints an eval warning
|
||||
assertion = !helpers.enableExceptInTests;
|
||||
message = "Expected helpers.enableExceptInTests to be false";
|
||||
}
|
||||
];
|
||||
};
|
||||
};
|
||||
|
|
@ -32,18 +27,13 @@ let
|
|||
nvim = makeNixvimWithModule {
|
||||
inherit pkgs;
|
||||
module =
|
||||
{ lib, helpers, ... }:
|
||||
{ lib, ... }:
|
||||
{
|
||||
assertions = [
|
||||
{
|
||||
assertion = lib.nixvim.enableExceptInTests;
|
||||
message = "Expected lib.nixvim.enableExceptInTests to be true";
|
||||
}
|
||||
{
|
||||
# NOTE: evaluating `helpers` here prints an eval warning
|
||||
assertion = helpers.enableExceptInTests;
|
||||
message = "Expected helpers.enableExceptInTests to be true";
|
||||
}
|
||||
];
|
||||
};
|
||||
};
|
||||
|
|
|
|||
|
|
@ -37,9 +37,6 @@ let
|
|||
imports = lib.toList module;
|
||||
}
|
||||
];
|
||||
extraSpecialArgs = {
|
||||
helpers = throw "nixvim: `helpers` used internally.";
|
||||
};
|
||||
};
|
||||
in
|
||||
configuration.config.build.test.overrideAttrs (old: {
|
||||
|
|
|
|||
|
|
@ -72,11 +72,6 @@ in
|
|||
default = { };
|
||||
};
|
||||
|
||||
# TODO: Added 2024-07-24; remove after 24.11
|
||||
imports = [
|
||||
(lib.mkRenamedOptionModule [ "nixvim" "helpers" ] [ "lib" "nixvim" ])
|
||||
];
|
||||
|
||||
config = mkMerge [
|
||||
{
|
||||
# Make Nixvim's extended lib available to the host modules
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue