nix-community.nixvim/tests/default.nix
Matt Sturgeon 990ef039f7
tests: move test derivations to tests/default.nix
Move the previous `default.nix` to `main.nix` so that `default.nix` can
be used for defining the set of all test derivations.

`main.nix` is imported by `default.nix`, but is only responsible for the
tests built from `tests/test-sources/`.
2024-10-18 20:51:30 +01:00

53 lines
1.6 KiB
Nix

{
pkgs,
pkgsUnfree,
helpers,
lib,
system,
self, # The flake instance
}:
let
inherit (self.legacyPackages.${system})
makeNixvimWithModule
nixvimConfiguration
;
in
{
extra-args-tests = import ./extra-args.nix {
inherit pkgs;
inherit makeNixvimWithModule;
};
extend = import ./extend.nix { inherit pkgs makeNixvimWithModule; };
extra-files = import ./extra-files.nix { inherit pkgs makeNixvimWithModule; };
enable-except-in-tests = import ./enable-except-in-tests.nix {
inherit pkgs makeNixvimWithModule;
inherit (self.lib.${system}.check) mkTestDerivationFromNixvimModule;
};
failing-tests = pkgs.callPackage ./failing-tests.nix {
inherit (self.lib.${system}.check) mkTestDerivationFromNixvimModule;
};
no-flake = import ./no-flake.nix {
inherit system;
inherit (self.lib.${system}.check) mkTestDerivationFromNvim;
nixvim = "${self}";
};
lib-tests = import ./lib-tests.nix {
inherit pkgs helpers;
inherit (pkgs) lib;
};
maintainers = import ./maintainers.nix { inherit pkgs; };
plugins-by-name = pkgs.callPackage ./plugins-by-name.nix { inherit nixvimConfiguration; };
generated = pkgs.callPackage ./generated.nix { };
package-options = pkgs.callPackage ./package-options.nix { inherit nixvimConfiguration; };
lsp-all-servers = pkgs.callPackage ./lsp-servers.nix { inherit nixvimConfiguration; };
}
# Tests generated from ./test-sources
# Grouped as a number of link-farms in the form { test-1, test-2, ... test-N }
// import ./main.nix {
inherit
lib
pkgs
pkgsUnfree
helpers
;
}