2023-12-06 13:09:26 +01:00
|
|
|
{
|
|
|
|
perSystem = {
|
|
|
|
pkgs,
|
2024-01-05 14:14:43 +01:00
|
|
|
config,
|
2023-12-06 13:09:26 +01:00
|
|
|
makeNixvimWithModuleUnfree,
|
|
|
|
makeNixvimWithModule,
|
|
|
|
...
|
|
|
|
}: {
|
2024-01-05 14:14:43 +01:00
|
|
|
checks =
|
|
|
|
{
|
|
|
|
tests = import ../tests {
|
|
|
|
inherit pkgs;
|
|
|
|
inherit (pkgs) lib;
|
|
|
|
makeNixvim = configuration:
|
|
|
|
makeNixvimWithModuleUnfree {
|
|
|
|
module = {
|
|
|
|
config = configuration;
|
|
|
|
};
|
2023-12-06 13:09:26 +01:00
|
|
|
};
|
2024-01-05 14:14:43 +01:00
|
|
|
};
|
2023-12-06 13:09:26 +01:00
|
|
|
|
2024-01-05 14:14:43 +01:00
|
|
|
extra-args-tests = import ../tests/extra-args.nix {
|
|
|
|
inherit pkgs;
|
|
|
|
inherit makeNixvimWithModule;
|
|
|
|
};
|
2023-12-06 13:09:26 +01:00
|
|
|
|
2024-01-05 14:14:43 +01:00
|
|
|
lib-tests = import ../tests/lib-tests.nix {
|
|
|
|
inherit pkgs;
|
|
|
|
inherit (pkgs) lib;
|
|
|
|
};
|
|
|
|
}
|
|
|
|
# Do not check if documentation builds fine on darwin as it fails:
|
|
|
|
# > sandbox-exec: pattern serialization length 69298 exceeds maximum (65535)
|
|
|
|
// (pkgs.lib.optionalAttrs (!pkgs.stdenv.isDarwin) {
|
|
|
|
inherit (config.packages) docs;
|
|
|
|
});
|
2023-12-06 13:09:26 +01:00
|
|
|
};
|
|
|
|
}
|