lazy.nvim.nix/tests/default.nix
2024-11-30 17:20:46 +01:00

41 lines
944 B
Nix

{
lib ? (import <nixpkgs> { }).lib,
}:
let
# pkgs stub to mock calls to pkgs
pkgs = rec {
writeTextFile =
{
name,
text,
executable ? false,
destination ? "",
checkPhase ? "",
meta ? { },
allowSubstitutes ? false,
preferLocalBuild ? true,
derivationArgs ? { },
}@set:
set;
writeTextDir =
path: text:
writeTextFile {
inherit text;
name = builtins.baseNameOf path;
destination = "/${path}";
};
symlinkJoin = { name, paths }@set: set;
stylua = "";
vPlug = {
lazy-nvim = "";
};
vimPlugins.lazy-nvim = "";
};
luaUtils = import ../pkgs/luaUtils.nix { inherit lib pkgs; };
lazyUtils = import ../pkgs/lazyUtils.nix { inherit lib pkgs luaUtils; };
in
{
luaUtils = import ./luaUtils.nix { inherit luaUtils; };
lazyUtils = import ./lazyUtils.nix { inherit lazyUtils; };
}