nix-community.nixvim/flake-modules
Matt Sturgeon 10f64e6c96
tests/test-derivation: allow tests to be modules
Use `mkTestDerivationFromNixvimModule` instead of `mkTestDerivation`,
allowing "proper" modules to be used instead of plain attr configs.

This is useful for more complex tests that wish to use `config` or
`options` arguments, e.g:

```nix
{config, options, ...}: {
  /* some cool test */
}
```

To allow `tests.dontRun` to be defined on such a test, the module is
allowed to be nested as `module`, e.g:

```nix
{
  tests.dontRun = true;
  module = {config, options, ...}: {
    /* a disabled test */
  };
}
```

Also ended up doing some general cleanup, removing an unused function,
etc.
2024-06-29 22:02:44 +01:00
..
dev flake/dev: fix nix-output-monitor 2024-06-27 18:34:55 +02:00
default.nix flake-modules: drop flake-root 2024-06-05 09:09:07 +01:00
helpers.nix treewide: Reformat with nixfmt 2024-05-05 22:00:40 +02:00
legacy-packages.nix treewide: Reformat with nixfmt 2024-05-05 22:00:40 +02:00
lib.nix treewide: Reformat with nixfmt 2024-05-05 22:00:40 +02:00
modules.nix meta: extend meta.nixvimInfo support treewide 2024-06-07 22:22:55 +01:00
overlays.nix treewide: Reformat with nixfmt 2024-05-05 22:00:40 +02:00
packages.nix docs: use lib.extend instead of patching nixpkgs 2024-06-06 11:13:52 +01:00
templates.nix treewide: Reformat with nixfmt 2024-05-05 22:00:40 +02:00
tests.nix tests/test-derivation: allow tests to be modules 2024-06-29 22:02:44 +01:00
wrappers.nix tests/test-derivation: allow tests to be modules 2024-06-29 22:02:44 +01:00