Previously, to determine if a file is byte-compiled, a simple binary file detection was used, specifically checking if it contained any null bytes. This commit updates the check to read the file header and compare it with a known LuaJIT header.
Includes a regression test. Revert "lib/modules: remove explicit `specialArgs.lib`" This reverts commit b5efe91c52.
b5efe91c52
wrappers
These should be set up in a dedicated test file, owned by `tests/default.nix`. Also refactored to use `callTest`.