mirror of
https://github.com/nix-community/nixvim.git
synced 2025-06-21 00:25:42 +02:00
Since we no longer need to extract `tests.dontRun` from an attrset, we no longer need the "special" `module` attr.
23 lines
410 B
Nix
23 lines
410 B
Nix
let
|
|
module =
|
|
{ lib, helpers, ... }:
|
|
{
|
|
assertions = [
|
|
{
|
|
assertion = lib ? nixvim;
|
|
message = "lib.nixvim should be defined";
|
|
}
|
|
{
|
|
assertion = lib.nixvim == helpers;
|
|
message = "lib.nixvim and helpers should be aliases";
|
|
}
|
|
];
|
|
};
|
|
in
|
|
{
|
|
top-level = module;
|
|
|
|
files-module = {
|
|
files."libtest.lua" = module;
|
|
};
|
|
}
|