|
99 | 99 | lib.unique (builtins.concatMap pluginWithItsDeps normalizedPlugins); |
100 | 100 |
|
101 | 101 | # Remove dependencies from all plugins in a list |
102 | | - removeDependecies = ps: map (p: p // { plugin = removeAttrs p.plugin [ "dependencies" ]; }) ps; |
| 102 | + removeDependencies = ps: map (p: p // { plugin = removeAttrs p.plugin [ "dependencies" ]; }) ps; |
103 | 103 |
|
104 | 104 | # Separated start and opt plugins |
105 | 105 | partitionedPlugins = builtins.partition (p: p.optional) allPlugins; |
106 | 106 | startPlugins = partitionedPlugins.wrong; |
107 | 107 | # Remove opt plugin dependencies since they are already available in start plugins |
108 | | - optPlugins = removeDependecies partitionedPlugins.right; |
| 108 | + optPlugins = removeDependencies partitionedPlugins.right; |
109 | 109 |
|
110 | 110 | # Test if plugin shouldn't be included in plugin pack |
111 | 111 | isStandalone = |
|
117 | 117 | partitionedStartPlugins = builtins.partition isStandalone startPlugins; |
118 | 118 | toCombinePlugins = partitionedStartPlugins.wrong; |
119 | 119 | # Remove standalone plugin dependencies since they are already available in start plugins |
120 | | - standaloneStartPlugins = removeDependecies partitionedStartPlugins.right; |
| 120 | + standaloneStartPlugins = removeDependencies partitionedStartPlugins.right; |
121 | 121 |
|
122 | 122 | # Combine start plugins into a single pack |
123 | 123 | pluginPack = |
124 | 124 | let |
125 | 125 | # Plugins with doc tags removed |
126 | | - overridedPlugins = map ( |
| 126 | + overriddenPlugins = map ( |
127 | 127 | plugin: |
128 | 128 | plugin.plugin.overrideAttrs (prev: { |
129 | 129 | nativeBuildInputs = lib.remove pkgs.vimUtils.vimGenDocHook prev.nativeBuildInputs or [ ]; |
|
147 | 147 | combinedPlugin = pkgs.vimUtils.toVimPlugin ( |
148 | 148 | pkgs.buildEnv { |
149 | 149 | name = "plugin-pack"; |
150 | | - paths = overridedPlugins; |
| 150 | + paths = overriddenPlugins; |
151 | 151 | inherit (config.performance.combinePlugins) pathsToLink; |
152 | 152 | # Remove empty directories and activate vimGenDocHook |
153 | 153 | postBuild = '' |
|
0 commit comments