mirror of
https://github.com/nix-community/nixvim.git
synced 2025-06-21 08:35:43 +02:00
modules/test: add config
and options
passthrus
This should make inspection of tests a little easier.
This commit is contained in:
parent
af31063538
commit
4814147442
1 changed files with 15 additions and 1 deletions
|
@ -1,6 +1,7 @@
|
|||
{
|
||||
pkgs,
|
||||
config,
|
||||
options,
|
||||
lib,
|
||||
...
|
||||
}:
|
||||
|
@ -66,7 +67,20 @@ in
|
|||
in
|
||||
{
|
||||
test.derivation =
|
||||
pkgs.runCommandNoCCLocal cfg.name { nativeBuildInputs = [ config.finalPackage ]; }
|
||||
pkgs.runCommandNoCCLocal cfg.name
|
||||
{
|
||||
nativeBuildInputs = [ config.finalPackage ];
|
||||
|
||||
# Allow inspecting the test's module a little from the repl
|
||||
# e.g.
|
||||
# :lf .
|
||||
# :p checks.x86_64-linux.test-1.passthru.entries.modules-autocmd.passthru.entries.example.passthru.config.extraConfigLua
|
||||
#
|
||||
# Yes, three levels of passthru is cursed.
|
||||
passthru = {
|
||||
inherit config options;
|
||||
};
|
||||
}
|
||||
(
|
||||
# First check warnings/assertions, then run nvim
|
||||
lib.optionalString (errors != "") ''
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue