|  | 
| 1 |  | -{ self, ... }: | 
|  | 1 | +{ self, lib, ... }: | 
| 2 | 2 | { | 
| 3 | 3 |   perSystem = | 
| 4 | 4 |     { | 
|  | 
| 10 | 10 |     }: | 
| 11 | 11 |     let | 
| 12 | 12 |       inherit (self'.legacyPackages.lib) helpers makeNixvimWithModule; | 
| 13 |  | -      inherit (self'.legacyPackages.lib.check) mkTestDerivationFromNvim mkTestDerivationFromNixvimModule; | 
| 14 |  | -      evaluatedNixvim = helpers.modules.evalNixvim { check = false; }; | 
|  | 13 | +      callTest = lib.callPackageWith ( | 
|  | 14 | +        pkgs | 
|  | 15 | +        // { | 
|  | 16 | +          nixvimLib = self'.legacyPackages.lib; | 
|  | 17 | +          inherit helpers makeNixvimWithModule; | 
|  | 18 | +          inherit (self'.legacyPackages.lib.check) mkTestDerivationFromNvim mkTestDerivationFromNixvimModule; | 
|  | 19 | +          evaluatedNixvim = helpers.modules.evalNixvim { check = false; }; | 
|  | 20 | +        } | 
|  | 21 | +      ); | 
| 15 | 22 |     in | 
| 16 | 23 |     { | 
| 17 | 24 |       checks = { | 
| 18 |  | -        extra-args-tests = import ../tests/extra-args.nix { inherit pkgs makeNixvimWithModule; }; | 
| 19 |  | - | 
| 20 |  | -        extend = import ../tests/extend.nix { inherit pkgs makeNixvimWithModule; }; | 
| 21 |  | - | 
| 22 |  | -        extra-files = import ../tests/extra-files.nix { inherit pkgs makeNixvimWithModule; }; | 
| 23 |  | - | 
| 24 |  | -        enable-except-in-tests = import ../tests/enable-except-in-tests.nix { | 
| 25 |  | -          inherit pkgs makeNixvimWithModule mkTestDerivationFromNixvimModule; | 
| 26 |  | -        }; | 
| 27 |  | - | 
| 28 |  | -        failing-tests = pkgs.callPackage ../tests/failing-tests.nix { | 
| 29 |  | -          inherit mkTestDerivationFromNixvimModule; | 
| 30 |  | -        }; | 
| 31 |  | - | 
| 32 |  | -        no-flake = import ../tests/no-flake.nix { | 
| 33 |  | -          inherit system mkTestDerivationFromNvim; | 
|  | 25 | +        extra-args-tests = callTest ../tests/extra-args.nix { }; | 
|  | 26 | +        extend = callTest ../tests/extend.nix { }; | 
|  | 27 | +        extra-files = callTest ../tests/extra-files.nix { }; | 
|  | 28 | +        enable-except-in-tests = callTest ../tests/enable-except-in-tests.nix { }; | 
|  | 29 | +        failing-tests = callTest ../tests/failing-tests.nix { }; | 
|  | 30 | +        no-flake = callTest ../tests/no-flake.nix { | 
|  | 31 | +          inherit system; | 
| 34 | 32 |           nixvim = "${self}"; | 
| 35 | 33 |         }; | 
| 36 |  | - | 
| 37 |  | -        lib-tests = import ../tests/lib-tests.nix { | 
| 38 |  | -          inherit pkgs helpers; | 
| 39 |  | -          inherit (pkgs) lib; | 
| 40 |  | -        }; | 
| 41 |  | - | 
| 42 |  | -        maintainers = import ../tests/maintainers.nix { inherit pkgs; }; | 
| 43 |  | - | 
| 44 |  | -        generated = pkgs.callPackage ../tests/generated.nix { }; | 
| 45 |  | - | 
| 46 |  | -        package-options = pkgs.callPackage ../tests/package-options.nix { inherit evaluatedNixvim; }; | 
| 47 |  | -      } // import ../tests { inherit pkgs pkgsUnfree helpers; }; | 
|  | 34 | +        lib-tests = callTest ../tests/lib-tests.nix { }; | 
|  | 35 | +        maintainers = callTest ../tests/maintainers.nix { }; | 
|  | 36 | +        generated = callTest ../tests/generated.nix { }; | 
|  | 37 | +        package-options = callTest ../tests/package-options.nix { }; | 
|  | 38 | +      } // callTest ../tests { inherit pkgsUnfree; }; | 
| 48 | 39 |     }; | 
| 49 | 40 | } | 
0 commit comments