nix-community.nixvim/tests
Stanislav Asunkin 44849233e0 modules/performance: add ability to byte compile lua configuration files
This commit adds support for byte compiling lua configuration files.
It's enabled by default (if byte compiling is enabled at all) and can be
disabled with `performance.byteCompileLua.configs` toggle.

To implement this feature `extraFiles.<name>.finalSource` internal
read-only option is introduced. `source` option cannot be used because
it's user configurable. In order to access the values of the
`performance.byteCompileLua` options, parent config is added to
specialArgs of extraFiles submodule. Then the usages of `source` option
changed to `finalSource` in all relevant places (filesPlugin and
wrappers).

Added more helpers for various cases of byte compiling:

* `byteCompileLuaFile` byte compiles lua file
* `byteCompileLuaHook` is a setup hook that byte compiles all lua files
* `byteCompileLuaDrv` overrides derivation by adding byteCompileLuaHook
  to it

Added tests to validate that extraFiles specified by various methods are
handled correctly. Added a separate home-manager test, that is intended
to validate that extraFiles propagated to wrapper modules are correctly
byte compiled.
2024-07-31 11:31:40 +00:00
..
modules modules/performance: add ability to byte compile lua configuration files 2024-07-31 11:31:40 +00:00
test-sources modules/performance: add ability to byte compile lua configuration files 2024-07-31 11:31:40 +00:00
default.nix dev: Make the tests command able to select which test to launch 2024-07-21 15:17:17 +02:00
enable-except-in-tests.nix treewide: Reformat with nixfmt 2024-05-05 22:00:40 +02:00
extend.nix standalone: rename nixvimExtend to extend 2024-07-01 15:54:29 +01:00
extra-args.nix treewide: Reformat with nixfmt 2024-05-05 22:00:40 +02:00
extra-files.nix flake/checks: test extraFiles are in the build 2024-07-07 16:43:06 +01:00
fetch-tests.nix modules/performance: add ability to byte compile lua configuration files 2024-07-31 11:31:40 +00:00
generated.nix tests/generated: init by checking declared tools 2024-07-31 11:49:28 +01:00
lib-tests.nix lib/to-lua: handle derivations as path strings 2024-07-22 13:24:16 +01:00
maintainers.nix tests: add check for nixpkgs maintainers 2024-07-10 09:18:18 +01:00
no-flake.nix treewide: Reformat with nixfmt 2024-05-05 22:00:40 +02:00
test-derivation.nix tests: Allow to test multiple derivations in a single test derivation 2024-07-19 11:11:17 +02:00