mirror of
https://github.com/nix-community/nixvim.git
synced 2025-06-21 00:25:42 +02:00
29 lines
824 B
Nix
29 lines
824 B
Nix
{
|
|
makeNixvim,
|
|
lib,
|
|
pkgs,
|
|
}: let
|
|
fetchTests = import ./fetch-tests.nix;
|
|
test-derivation = import ./test-derivation.nix {inherit pkgs makeNixvim;};
|
|
inherit (test-derivation) mkTestDerivation;
|
|
|
|
# List of files containing configurations
|
|
testFiles = fetchTests {
|
|
inherit lib pkgs;
|
|
root = ./test-sources;
|
|
};
|
|
in
|
|
# We attempt to build & execute all configurations
|
|
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"
|
|
];
|
|
})
|