1
0
Fork 0
mirror of https://github.com/nix-community/nixvim.git synced 2025-11-26 04:01:03 +01:00
nixvim/tests/test-sources/extended-lib.nix
Matt Sturgeon ecb843b614 tests/extended-lib: don't build/run nixvim
This is an assertion-only test.
2025-11-24 11:09:51 +00:00

28 lines
600 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 = {
test.buildNixvim = false;
imports = [ module ];
};
files-module = {
test.buildNixvim = false;
files."libtest.lua" = module;
};
}