|
7 | 7 | self, # The flake instance |
8 | 8 | }: |
9 | 9 | let |
10 | | - inherit (self.legacyPackages.${system}) |
11 | | - makeNixvimWithModule |
12 | | - nixvimConfiguration |
13 | | - ; |
| 10 | + autoArgs = pkgs // { |
| 11 | + inherit |
| 12 | + helpers |
| 13 | + lib |
| 14 | + pkgsUnfree |
| 15 | + self |
| 16 | + system |
| 17 | + ; |
| 18 | + inherit (self.legacyPackages.${system}) |
| 19 | + makeNixvimWithModule |
| 20 | + nixvimConfiguration |
| 21 | + ; |
| 22 | + inherit (self.lib.${system}.check) |
| 23 | + mkTestDerivationFromNvim |
| 24 | + mkTestDerivationFromNixvimModule |
| 25 | + ; |
| 26 | + # Recursive: |
| 27 | + inherit callTest callTests; |
| 28 | + }; |
| 29 | + |
| 30 | + callTest = lib.callPackageWith autoArgs; |
| 31 | + callTests = lib.callPackagesWith autoArgs; |
14 | 32 | in |
15 | 33 | { |
16 | | - extra-args-tests = import ./extra-args.nix { |
17 | | - inherit pkgs; |
18 | | - inherit makeNixvimWithModule; |
19 | | - }; |
20 | | - extend = import ./extend.nix { inherit pkgs makeNixvimWithModule; }; |
21 | | - extra-files = import ./extra-files.nix { inherit pkgs makeNixvimWithModule; }; |
22 | | - enable-except-in-tests = import ./enable-except-in-tests.nix { |
23 | | - inherit pkgs makeNixvimWithModule; |
24 | | - inherit (self.lib.${system}.check) mkTestDerivationFromNixvimModule; |
25 | | - }; |
26 | | - failing-tests = pkgs.callPackage ./failing-tests.nix { |
27 | | - inherit (self.lib.${system}.check) mkTestDerivationFromNixvimModule; |
28 | | - }; |
29 | | - no-flake = import ./no-flake.nix { |
30 | | - inherit system; |
31 | | - inherit (self.lib.${system}.check) mkTestDerivationFromNvim; |
32 | | - nixvim = "${self}"; |
33 | | - }; |
34 | | - lib-tests = import ./lib-tests.nix { |
35 | | - inherit pkgs helpers; |
36 | | - inherit (pkgs) lib; |
37 | | - }; |
38 | | - maintainers = import ./maintainers.nix { inherit pkgs; }; |
39 | | - plugins-by-name = pkgs.callPackage ./plugins-by-name.nix { inherit nixvimConfiguration; }; |
40 | | - generated = pkgs.callPackage ./generated.nix { }; |
41 | | - package-options = pkgs.callPackage ./package-options.nix { inherit nixvimConfiguration; }; |
42 | | - lsp-all-servers = pkgs.callPackage ./lsp-servers.nix { inherit nixvimConfiguration; }; |
| 34 | + extra-args-tests = callTest ./extra-args.nix { }; |
| 35 | + extend = callTest ./extend.nix { }; |
| 36 | + extra-files = callTest ./extra-files.nix { }; |
| 37 | + enable-except-in-tests = callTest ./enable-except-in-tests.nix { }; |
| 38 | + failing-tests = callTest ./failing-tests.nix { }; |
| 39 | + no-flake = callTest ./no-flake.nix { }; |
| 40 | + lib-tests = callTest ./lib-tests.nix { }; |
| 41 | + maintainers = callTest ./maintainers.nix { }; |
| 42 | + plugins-by-name = callTest ./plugins-by-name.nix { }; |
| 43 | + generated = callTest ./generated.nix { }; |
| 44 | + package-options = callTest ./package-options.nix { }; |
| 45 | + lsp-all-servers = callTest ./lsp-servers.nix { }; |
43 | 46 | } |
44 | 47 | # Tests generated from ./test-sources |
45 | 48 | # Grouped as a number of link-farms in the form { test-1, test-2, ... test-N } |
46 | | -// import ./main.nix { |
47 | | - inherit |
48 | | - lib |
49 | | - pkgs |
50 | | - pkgsUnfree |
51 | | - helpers |
52 | | - ; |
53 | | -} |
| 49 | +// callTests ./main.nix { } |
0 commit comments