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