nix-community.nixvim/tests/test-sources/extended-lib.nix
Matt Sturgeon fd923a3dd3
lib/options: remove deprecated package option helpers
`mkPackageOption` and `mkPluginPackageOption` have both been replaced
with nixpkg's `lib.mkPackageOption`.
2024-09-05 02:24:52 +01:00

23 lines
448 B
Nix

let
module =
{ lib, helpers, ... }:
{
assertions = [
{
assertion = lib ? nixvim;
message = "lib.nixvim should be defined";
}
{
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;
};
}