Skip to content

Commit

Permalink
tests/nixpkgs-module: split up helper fn
Browse files Browse the repository at this point in the history
  • Loading branch information
MattSturgeon committed Jan 16, 2025
1 parent 5192a85 commit e13b2a5
Showing 1 changed file with 15 additions and 16 deletions.
31 changes: 15 additions & 16 deletions tests/nixpkgs-module.nix
Original file line number Diff line number Diff line change
Expand Up @@ -10,23 +10,22 @@ let

defaultPkgs = pkgs;

testModule =
evalModule =
name: module:
let
configuration = lib.nixvim.modules.evalNixvim {
modules = lib.toList module ++ [
{
test = {
inherit name;
buildNixvim = false;
runNvim = false;
runCommand = runCommandLocal;
};
}
];
};
in
configuration.config.build.test;
lib.nixvim.modules.evalNixvim {
modules = lib.toList module ++ [
{
test = {
inherit name;
buildNixvim = false;
runNvim = false;
runCommand = runCommandLocal;
};
}
];
};

testModule = name: module: (evalModule name module).config.build.test;

in
linkFarmFromDrvs "nixpkgs-module-test" [
Expand Down

0 comments on commit e13b2a5

Please sign in to comment.