nix-community.nixvim/modules/top-level
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
..
files modules: move nixpkgs module to top-level modules 2024-09-27 09:30:12 +01:00
plugins modules/performance: fix specifying combinePlugin.standalonePlugins as packages when byte compilation enabled 2025-06-02 18:15:32 +03:00
default.nix modules: refactor plugins code in top-level 2025-04-01 15:43:26 +02:00
nixpkgs.nix modules/nixpkgs: don't assign elaborated platforms 2025-02-04 23:57:58 +00:00
output.nix modules/top-level: change usages of import to callPackage 2025-05-12 17:39:01 +03:00
readonly-renames.nix modules/{output,files,test}: move outputs to build scope 2024-09-26 06:31:57 +01:00
test.nix modules/output: move symlinkJoin to build.package 2025-01-20 14:49:59 +00:00