2024-02-15 14:27:45 +01:00
|
|
|
{self, ...}: {
|
2023-12-06 13:09:26 +01:00
|
|
|
perSystem = {
|
|
|
|
pkgs,
|
2024-01-05 14:14:43 +01:00
|
|
|
config,
|
2024-01-06 17:53:31 +01:00
|
|
|
system,
|
2024-02-09 15:03:32 +01:00
|
|
|
helpers,
|
2023-12-06 13:09:26 +01:00
|
|
|
makeNixvimWithModuleUnfree,
|
|
|
|
makeNixvimWithModule,
|
|
|
|
...
|
|
|
|
}: {
|
2024-01-06 17:57:24 +01:00
|
|
|
checks = {
|
|
|
|
tests = import ../tests {
|
2024-02-15 14:27:45 +01:00
|
|
|
inherit pkgs helpers makeNixvimWithModule;
|
2024-01-06 17:57:24 +01:00
|
|
|
inherit (pkgs) lib;
|
|
|
|
makeNixvim = configuration:
|
|
|
|
makeNixvimWithModuleUnfree {
|
|
|
|
module = {
|
|
|
|
config = configuration;
|
2023-12-06 13:09:26 +01:00
|
|
|
};
|
2024-01-06 17:57:24 +01:00
|
|
|
};
|
|
|
|
};
|
2024-01-06 17:31:17 +01:00
|
|
|
|
2024-01-06 17:57:24 +01:00
|
|
|
extra-args-tests = import ../tests/extra-args.nix {
|
|
|
|
inherit pkgs;
|
|
|
|
inherit makeNixvimWithModule;
|
|
|
|
};
|
2024-01-06 17:53:31 +01:00
|
|
|
|
2024-02-15 14:27:45 +01:00
|
|
|
enable-except-in-tests = import ../tests/enable-except-in-tests.nix {
|
|
|
|
inherit pkgs makeNixvimWithModule;
|
|
|
|
inherit (self.lib.${system}.check) mkTestDerivationFromNixvimModule;
|
|
|
|
};
|
|
|
|
|
2024-02-15 22:51:26 +01:00
|
|
|
no-flake = import ../tests/no-flake.nix {
|
|
|
|
inherit system;
|
|
|
|
inherit (self.lib.${system}.check) mkTestDerivationFromNvim;
|
|
|
|
nixvim = "${self}";
|
|
|
|
};
|
|
|
|
|
2024-01-06 17:57:24 +01:00
|
|
|
lib-tests = import ../tests/lib-tests.nix {
|
2024-02-09 15:03:32 +01:00
|
|
|
inherit pkgs helpers;
|
2024-01-06 17:57:24 +01:00
|
|
|
inherit (pkgs) lib;
|
2024-01-06 17:53:31 +01:00
|
|
|
};
|
2024-01-06 17:57:24 +01:00
|
|
|
};
|
2023-12-06 13:09:26 +01:00
|
|
|
};
|
|
|
|
}
|