From bd20996cf187244da74c7fbc2207b3fe110295fd Mon Sep 17 00:00:00 2001 From: derped Date: Sat, 30 Nov 2024 16:57:00 +0100 Subject: [PATCH] writeLazyPluginDir: Avoid getName call on plugin before normalization. --- pkgs/lazyUtils.nix | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pkgs/lazyUtils.nix b/pkgs/lazyUtils.nix index 56cba90..4b9dd22 100644 --- a/pkgs/lazyUtils.nix +++ b/pkgs/lazyUtils.nix @@ -181,10 +181,10 @@ rec { writeLazyPluginDir = plugin: let - # normalie plugin file name - name = lib.replaceStrings [ "." ] [ "-" ] (helpers.getName (helpers.pluginWrapper plugin)); + normalizedPlugin = helpers.pluginNormalize plugin; + name = lib.replaceStrings [ "." ] [ "-" ] normalizedPlugin.name; in - luaUtils.writeLuaFileDir "lua/lazyWrapper/plugins/${name}" (lazyPluginFile plugin); + luaUtils.writeLuaFileDir "lua/lazyWrapper/plugins/${name}" ''return ${luaUtils.setToLua normalizedPlugin}''; /** Builds and configures the lazy plugin directory.