vimPlugins.lze: init at 0.1.1 (#339387)

This commit is contained in:
Gaétan Lepage 2024-09-14 20:32:40 +02:00 committed by GitHub
commit c6e077b0b2
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
4 changed files with 37 additions and 0 deletions

View File

@ -105,6 +105,7 @@ luv,,,,1.48.0-2,,
lush.nvim,,,https://luarocks.org/dev,,,teto
lyaml,,,,,,lblasc
lz.n,,,,,,mrcjkb
lze,,,,,,birdee
lzn-auto-require,,,,,,mrcjkb
magick,,,,,5.1,donovanglover
markdown,,,,,,

1 name rockspec ref server version luaversion maintainers
105 lush.nvim https://luarocks.org/dev teto
106 lyaml lblasc
107 lz.n mrcjkb
108 lze birdee
109 lzn-auto-require mrcjkb
110 magick 5.1 donovanglover
111 markdown

View File

@ -1056,6 +1056,8 @@
lz-n = neovimUtils.buildNeovimPlugin { luaAttr = "lz-n"; };
lze = neovimUtils.buildNeovimPlugin { luaAttr = "lze"; };
lzn-auto-require = neovimUtils.buildNeovimPlugin { luaAttr = "lzn-auto-require"; };
magma-nvim-goose = buildVimPlugin {

View File

@ -2512,6 +2512,29 @@ buildLuarocksPackage {
};
}) {};
lze = callPackage({ buildLuarocksPackage, fetchurl, fetchzip, luaOlder }:
buildLuarocksPackage {
pname = "lze";
version = "0.1.1-1";
knownRockspec = (fetchurl {
url = "mirror://luarocks/lze-0.1.1-1.rockspec";
sha256 = "0rih9kgx846qhp1fmsqlnp8y08kv4hp8gl9dwykz4zr0zljy94j3";
}).outPath;
src = fetchzip {
url = "https://github.com/BirdeeHub/lze/archive/v0.1.1.zip";
sha256 = "1s6n61jabsv94s37xd5g0y7fxhficc4rwsklgsmzajravpgy60a8";
};
disabled = luaOlder "5.1";
meta = {
homepage = "https://github.com/BirdeeHub/lze";
description = "A lazy-loading library for neovim, inspired by, but different from, nvim-neorocks/lz.n";
maintainers = with lib.maintainers; [ birdee ];
license.fullName = "GPL-2+";
};
}) {};
lzn-auto-require = callPackage({ buildLuarocksPackage, fetchurl, fetchzip, luaOlder, lz-n }:
buildLuarocksPackage {
pname = "lzn-auto-require";

View File

@ -543,6 +543,17 @@ in
'';
});
lze = prev.lze.overrideAttrs(oa: {
doCheck = lua.luaversion == "5.1";
nativeCheckInputs = [ final.nlua final.busted ];
checkPhase = ''
runHook preCheck
export HOME=$(mktemp -d)
busted --lua=nlua
runHook postCheck
'';
});
neotest = prev.neotest.overrideAttrs(oa: {
doCheck = true;
nativeCheckInputs = oa.nativeCheckInputs ++ [