mirror of
https://github.com/nix-community/nixvim.git
synced 2025-11-21 17:59:41 +01:00
This has been soft-deprecated for several releases. Now that we have removed our internal usage, we can introduce an eval warning.
24 lines
515 B
Nix
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;
|
|
};
|
|
}
|