1
0
Fork 0
mirror of https://github.com/nix-community/nixvim.git synced 2025-11-21 17:59:41 +01:00
nixvim/tests/test-sources/extended-lib.nix
Matt Sturgeon 82bc02466c lib/evalNixvim: deprecate specialArgs.helpers
This has been soft-deprecated for several releases. Now that we have
removed our internal usage, we can introduce an eval warning.
2025-11-19 15:22:27 +00:00

24 lines
515 B
Nix

let
module =
{ lib, helpers, ... }:
{
assertions = [
{
assertion = lib ? nixvim;
message = "lib.nixvim should be defined";
}
{
# NOTE: evaluating `helpers` here prints an eval warning
assertion = builtins.attrNames lib.nixvim == builtins.attrNames helpers;
message = "lib.nixvim and helpers should be aliases";
}
];
};
in
{
top-level = module;
files-module = {
files."libtest.lua" = module;
};
}