1
0
Fork 0
mirror of https://github.com/nix-community/home-manager.git synced 2025-11-21 17:59:39 +01:00
home-manager/tests/modules/programs/neovim/stubs.nix
Austin Horstman 85e68c6a38 tests/neovim: stub meta.teams
Signed-off-by: Austin Horstman <khaneliman12@gmail.com>
2025-06-18 11:12:29 -05:00

39 lines
916 B
Nix

{ lib, pkgs, ... }:
{
test.stubs = {
neovim-unwrapped = {
name = "neovim-unwrapped";
outPath = null;
buildScript = ''
mkdir -p $out/bin $out/share/applications
echo "Name=Neovim" > $out/share/applications/nvim.desktop
cp ${pkgs.writeShellScript "nvim" "exit 0"} $out/bin/nvim
chmod +x $out/bin/nvim
'';
extraAttrs = {
lua = pkgs.writeTextDir "nix-support/utils.sh" ''
function _addToLuaPath() {
return 0
}
'';
meta =
let
stub = "stub";
in
{
description = stub;
longDescription = stub;
homepage = stub;
mainProgram = stub;
license = [ stub ];
maintainers = [ stub ];
teams = [ stub ];
platforms = lib.platforms.all;
};
};
};
};
}