File tree Expand file tree Collapse file tree 5 files changed +23
-13
lines changed Expand file tree Collapse file tree 5 files changed +23
-13
lines changed Original file line number Diff line number Diff line change 172
172
config =
173
173
let
174
174
# Optionally byte compile lua library
175
- inherit ( import ./plugins/byte-compile-lua-lib.nix { inherit lib pkgs ; } ) byteCompileLuaPackages ;
175
+ inherit ( pkgs . callPackage ./plugins/byte-compile-lua-lib.nix { inherit lib ; } )
176
+ byteCompileLuaPackages
177
+ ;
176
178
extraLuaPackages =
177
179
if config . performance . byteCompileLua . enable && config . performance . byteCompileLua . luaLib then
178
180
ps : byteCompileLuaPackages ( config . extraLuaPackages ps )
Original file line number Diff line number Diff line change 1
1
# Utilities for byte compiling of lua dependencies
2
- { lib , pkgs } :
2
+ {
3
+ lib ,
4
+ pkgs ,
5
+ neovim-unwrapped ,
6
+ } :
3
7
let
4
8
builders = lib . nixvim . builders . withPkgs pkgs ;
5
9
inherit ( import ./utils.nix lib ) mapNormalizedPlugins ;
6
10
7
- luaPackages = pkgs . neovim-unwrapped . lua . pkgs ;
11
+ luaPackages = neovim-unwrapped . lua . pkgs ;
8
12
9
13
# Applies a function to the derivation, but only if it's a lua module,
10
14
# otherwise returns it as is
Original file line number Diff line number Diff line change 1
1
{
2
2
lib ,
3
- pkgs ,
3
+ callPackage ,
4
4
pathsToLink ,
5
5
standalonePlugins ,
6
6
} :
9
9
getAndNormalizeDeps
10
10
removeDeps
11
11
;
12
- mkPluginPack = import ./mk-plugin-pack.nix { inherit lib pkgs ; } ;
12
+ mkPluginPack = callPackage ./mk-plugin-pack.nix { inherit lib ; } ;
13
13
14
14
in
15
15
/*
Original file line number Diff line number Diff line change 32
32
build . plugins =
33
33
let
34
34
shouldCompilePlugins = byteCompileCfg . enable && byteCompileCfg . plugins ;
35
- byteCompilePlugins = import ./byte-compile-plugins.nix { inherit lib pkgs ; } ;
35
+ byteCompilePlugins = pkgs . callPackage ./byte-compile-plugins.nix { inherit lib ; } ;
36
36
37
37
shouldCompileLuaLib = byteCompileCfg . enable && byteCompileCfg . luaLib ;
38
- inherit ( import ./byte-compile-lua-lib.nix { inherit lib pkgs ; } ) byteCompilePluginDeps ;
38
+ inherit ( pkgs . callPackage ./byte-compile-lua-lib.nix { inherit lib ; } ) byteCompilePluginDeps ;
39
39
40
40
shouldCombinePlugins = config . performance . combinePlugins . enable ;
41
- combinePlugins = import ./combine-plugins.nix {
42
- inherit lib pkgs ;
41
+ combinePlugins = pkgs . callPackage ./combine-plugins.nix {
42
+ inherit lib ;
43
43
inherit ( config . performance . combinePlugins )
44
44
standalonePlugins
45
45
pathsToLink
Original file line number Diff line number Diff line change 1
- { lib , pkgs } :
1
+ {
2
+ lib ,
3
+ buildEnv ,
4
+ vimUtils ,
5
+ } :
2
6
let
3
7
inherit ( import ./utils.nix lib ) normalizePlugin ;
4
8
in
8
12
overridePlugin =
9
13
plugin :
10
14
plugin . plugin . overrideAttrs ( prev : {
11
- nativeBuildInputs = lib . remove pkgs . vimUtils . vimGenDocHook prev . nativeBuildInputs or [ ] ;
15
+ nativeBuildInputs = lib . remove vimUtils . vimGenDocHook prev . nativeBuildInputs or [ ] ;
12
16
configurePhase = ''
13
17
${ prev . configurePhase or "" }
14
18
rm -vf doc/tags'' ;
56
60
} ;
57
61
}
58
62
[
59
- pkgs . buildEnv
60
- pkgs . vimUtils . toVimPlugin
63
+ buildEnv
64
+ vimUtils . toVimPlugin
61
65
( drv : drv . overrideAttrs { inherit propagatedBuildInputs ; } )
62
66
] ;
63
67
You can’t perform that action at this time.
0 commit comments