flake: checks.nix -> tests.nix

This commit is contained in:
Gaetan Lepage 2024-01-06 15:55:50 +01:00 committed by Gaétan Lepage
parent 48b5056d28
commit 186fe574f9
2 changed files with 1 additions and 1 deletions

32
flake-modules/tests.nix Normal file
View file

@ -0,0 +1,32 @@
{
perSystem = {
pkgs,
config,
makeNixvimWithModuleUnfree,
makeNixvimWithModule,
...
}: {
checks = {
tests = import ../tests {
inherit pkgs;
inherit (pkgs) lib;
makeNixvim = configuration:
makeNixvimWithModuleUnfree {
module = {
config = configuration;
};
};
};
extra-args-tests = import ../tests/extra-args.nix {
inherit pkgs;
inherit makeNixvimWithModule;
};
lib-tests = import ../tests/lib-tests.nix {
inherit pkgs;
inherit (pkgs) lib;
};
};
};
}