2023-03-22 07:42:02 +01:00
|
|
|
{
|
|
|
|
makeNixvim,
|
|
|
|
lib,
|
|
|
|
pkgs,
|
|
|
|
}: let
|
|
|
|
fetchTests = import ./fetch-tests.nix;
|
2023-05-15 11:04:52 +02:00
|
|
|
test-derivation = import ./test-derivation.nix {inherit pkgs makeNixvim;};
|
2023-05-22 15:45:47 +05:30
|
|
|
inherit (test-derivation) mkTestDerivation;
|
2023-03-22 07:42:02 +01:00
|
|
|
|
|
|
|
# List of files containing configurations
|
|
|
|
testFiles = fetchTests {
|
|
|
|
inherit lib pkgs;
|
|
|
|
root = ./test-sources;
|
|
|
|
};
|
|
|
|
in
|
|
|
|
# We attempt to build & execute all configurations
|
2023-10-22 14:53:52 +02:00
|
|
|
builtins.mapAttrs mkTestDerivation (testFiles
|
|
|
|
// {
|
|
|
|
example = let
|
|
|
|
config = import ../example.nix {inherit pkgs;};
|
|
|
|
in
|
|
|
|
builtins.removeAttrs config.programs.nixvim [
|
|
|
|
# This is not available to standalone modules, only HM & NixOS Modules
|
|
|
|
"enable"
|
|
|
|
# This is purely an example, it does not reflect a real usage
|
|
|
|
"extraConfigLua"
|
|
|
|
"extraConfigVim"
|
|
|
|
];
|
|
|
|
})
|