nix-community.nixvim/modules/top-level/plugins
Stanislav Asunkin 65d35db5ca modules/performance: fix specifying combinePlugin.standalonePlugins as packages when byte compilation enabled
Previously, specifying plugins as packages in the
`performance.combinePlugins.standalonePlugins` option did not work when
the `performance.byteCompileLua` option was also enabled. This issue was
due to several package transformations performed by the
`byteCompileLua` which broke package comparison.

There are at least three methods to fix the issue:

- Change transformation order: combine plugins first, then byte-compile
  them.
- Compare every possible transformation when determining if plugins are
  standalone.
- Get the name of the package and use it for comparison.

The first method did not work because the current `byteCompileLuaDrv`
implementation does not support symlinks to directories. The second
method appears too fragile. This commit implements the third method, as
it requires minimal code changes and is straightforward. The downside is
that it might exclude multiple packages with the same name, although
this should be rare.
2025-06-02 18:15:32 +03:00
..
byte-compile-lua-lib.nix modules/top-level: change usages of import to callPackage 2025-05-12 17:39:01 +03:00
byte-compile-plugins.nix modules/top-level/plugins: use mapNormalizedPlugins utils function 2025-05-12 17:39:01 +03:00
combine-plugins.nix modules/performance: fix specifying combinePlugin.standalonePlugins as packages when byte compilation enabled 2025-06-02 18:15:32 +03:00
default.nix modules/top-level: change usages of import to callPackage 2025-05-12 17:39:01 +03:00
mk-plugin-pack.nix modules/top-level: change usages of import to callPackage 2025-05-12 17:39:01 +03:00
utils.nix modules/performance: add ability to byte-compile plugin lua dependencies 2025-05-12 17:39:01 +03:00