File tree Expand file tree Collapse file tree 4 files changed +20
-17
lines changed Expand file tree Collapse file tree 4 files changed +20
-17
lines changed Original file line number Diff line number Diff line change 22 perSystem =
33 {
44 pkgs ,
5- config ,
5+ helpers ,
66 makeNixvimWithModule ,
77 ...
88 } :
99 {
1010 legacyPackages = rec {
1111 inherit makeNixvimWithModule ;
1212 makeNixvim = module : makeNixvimWithModule { inherit module ; } ;
13+
14+ nixvimConfiguration = helpers . modules . evalNixvim {
15+ extraSpecialArgs = {
16+ defaultPkgs = pkgs ;
17+ } ;
18+ check = false ;
19+ } ;
1320 } ;
1421 } ;
1522}
Original file line number Diff line number Diff line change 77 system ,
88 helpers ,
99 makeNixvimWithModule ,
10+ self' ,
1011 ...
1112 } :
1213 let
13- evaluatedNixvim = helpers . modules . evalNixvim {
14- extraSpecialArgs = {
15- defaultPkgs = pkgs ;
16- } ;
17- check = false ;
18- } ;
14+ inherit ( self' . legacyPackages ) nixvimConfiguration ;
1915 in
2016 {
2117 checks = {
5046
5147 maintainers = import ../tests/maintainers.nix { inherit pkgs ; } ;
5248
53- plugins-by-name = pkgs . callPackage ../tests/plugins-by-name.nix { inherit evaluatedNixvim ; } ;
49+ plugins-by-name = pkgs . callPackage ../tests/plugins-by-name.nix { inherit nixvimConfiguration ; } ;
5450
5551 generated = pkgs . callPackage ../tests/generated.nix { } ;
5652
57- package-options = pkgs . callPackage ../tests/package-options.nix { inherit evaluatedNixvim ; } ;
53+ package-options = pkgs . callPackage ../tests/package-options.nix { inherit nixvimConfiguration ; } ;
5854 } // import ../tests { inherit pkgs pkgsUnfree helpers ; } ;
5955 } ;
6056}
Original file line number Diff line number Diff line change 11# This test ensures "package" options use a "literalExpression" in their defaultText
22# I.e. it validates `lib.mkPackageOption` was used to build the package options.
33{
4- evaluatedNixvim ,
4+ nixvimConfiguration ,
55 lib ,
66 runCommandNoCCLocal ,
77} :
2222
2323 # This doesn't collect any submodule sub-options,
2424 # but that's fine since most of our "package" options are in the top level module eval
25- options = lib . collect isOption evaluatedNixvim . options ;
25+ options = lib . collect isOption nixvimConfiguration . options ;
2626
2727 # All visible non-sub options that default to a derivation
2828 drvOptions = filter (
@@ -51,7 +51,7 @@ runCommandNoCCLocal "validate-package-options"
5151
5252 # Passthroughs for debugging purposes
5353 passthru = {
54- inherit evaluatedNixvim drvOptions badOptions ;
54+ inherit nixvimConfiguration drvOptions badOptions ;
5555 } ;
5656
5757 # Error strings to print
@@ -60,7 +60,7 @@ runCommandNoCCLocal "validate-package-options"
6060 # A little hack to get the flake's source in the nix store
6161 # We will use this to make the option declaration sources more readable
6262 src = removeSuffix "modules/top-level/output.nix" (
63- head evaluatedNixvim . options . package . declarations
63+ head nixvimConfiguration . options . package . declarations
6464 ) ;
6565 in
6666 map (
Original file line number Diff line number Diff line change 11{
22 lib ,
3- evaluatedNixvim ,
3+ nixvimConfiguration ,
44 linkFarmFromDrvs ,
55 runCommandNoCCLocal ,
66} :
77let
88 by-name = ../plugins/by-name ;
9- options = lib . collect lib . isOption evaluatedNixvim . options ;
9+ options = lib . collect lib . isOption nixvimConfiguration . options ;
1010
1111 # Option namespaces that we allow by-name plugins to declare
1212 knownPluginNamespaces = [
@@ -137,7 +137,7 @@ linkFarmFromDrvs "plugins-by-name" [
137137 ] ;
138138
139139 passthru = {
140- inherit evaluatedNixvim ;
140+ inherit nixvimConfiguration ;
141141 } ;
142142 }
143143 ''
@@ -172,7 +172,7 @@ linkFarmFromDrvs "plugins-by-name" [
172172 ] ;
173173
174174 passthru = {
175- inherit evaluatedNixvim ;
175+ inherit nixvimConfiguration ;
176176 } ;
177177 }
178178 ''
You can’t perform that action at this time.
0 commit comments