lua51Packages.lualine-nvim: init (#382668)

This commit is contained in:
Gaétan Lepage 2025-02-16 23:00:39 +01:00 committed by GitHub
commit faa638183d
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
6 changed files with 43 additions and 14 deletions

View file

@ -81,6 +81,7 @@ luaexpat,,,,1.4.1-1,,arobyn flosse
luaffi,,,http://luarocks.org/dev,,,
luafilesystem,,,,1.8.0-1,,flosse
lualdap,,,,,,aanderse
lualine.nvim,,,http://luarocks.org/dev,,,
lualogging,,,,,,
luaossl,,,,,5.1,
luaposix,,,,34.1.1-1,,vyp lblasc

1 name rockspec ref server version luaversion maintainers
81 luaffi http://luarocks.org/dev
82 luafilesystem 1.8.0-1 flosse
83 lualdap aanderse
84 lualine.nvim http://luarocks.org/dev
85 lualogging
86 luaossl 5.1
87 luaposix 34.1.1-1 vyp lblasc

View file

@ -7051,19 +7051,6 @@ final: prev:
meta.hydraPlatforms = [ ];
};
lualine-nvim = buildVimPlugin {
pname = "lualine.nvim";
version = "2025-02-08";
src = fetchFromGitHub {
owner = "nvim-lualine";
repo = "lualine.nvim";
rev = "f4f791f67e70d378a754d02da068231d2352e5bc";
sha256 = "12jm3vc3mi0p9kjw7g1cd6a9nkgws1mvq2h7lpfmflad8zfmw35q";
};
meta.homepage = "https://github.com/nvim-lualine/lualine.nvim/";
meta.hydraPlatforms = [ ];
};
luasnip-latex-snippets-nvim = buildVimPlugin {
pname = "luasnip-latex-snippets.nvim";
version = "2024-11-25";

View file

@ -4004,6 +4004,7 @@ in
"gitsigns-nvim"
"image-nvim"
"lsp-progress-nvim"
"lualine-nvim"
"luasnip"
"lush-nvim"
"lz-n"

View file

@ -540,7 +540,6 @@ https://github.com/nvimdev/lspsaga.nvim/,,
https://github.com/barreiroleo/ltex_extra.nvim/,HEAD,
https://github.com/nvim-java/lua-async/,HEAD,
https://github.com/arkav/lualine-lsp-progress/,,
https://github.com/nvim-lualine/lualine.nvim/,,
https://github.com/evesdropper/luasnip-latex-snippets.nvim/,HEAD,
https://github.com/alvarosevilla95/luatab.nvim/,,
https://github.com/mkasa/lushtags/,,

View file

@ -1946,6 +1946,31 @@ buildLuarocksPackage {
};
}) {};
lualine-nvim = callPackage({ buildLuarocksPackage, fetchFromGitHub, fetchurl, luaOlder, nvim-web-devicons }:
buildLuarocksPackage {
pname = "lualine.nvim";
version = "scm-1";
knownRockspec = (fetchurl {
url = "mirror://luarocks/lualine.nvim-scm-1.rockspec";
sha256 = "1mzsfiq4h95s0nbygwii2w8xs5rixdbha322bvx453k530s2kxxj";
}).outPath;
src = fetchFromGitHub {
owner = "nvim-lualine";
repo = "lualine.nvim";
rev = "f4f791f67e70d378a754d02da068231d2352e5bc";
hash = "sha256-uAxe3UdNUVfdpQcKvGvQ/E2blGksvMPlTBfEOtgeVYo=";
};
disabled = luaOlder "5.1";
propagatedBuildInputs = [ nvim-web-devicons ];
meta = {
homepage = "https://github.com/nvim-lualine/lualine.nvim";
description = "A blazing fast and easy to configure neovim statusline plugin written in pure lua.";
license.fullName = "MIT";
};
}) {};
lualogging = callPackage({ buildLuarocksPackage, fetchFromGitHub, fetchurl, luasocket }:
buildLuarocksPackage {
pname = "lualogging";

View file

@ -58,6 +58,7 @@
zlib,
zziplib,
writableTmpDirAsHomeHook,
gitMinimal,
}:
final: prev:
@ -494,6 +495,21 @@ in
];
});
lualine-nvim = prev.lualine-nvim.overrideAttrs (_: {
doCheck = lua.luaversion == "5.1";
nativeCheckInputs = [
final.nlua
final.busted
gitMinimal
];
checkPhase = ''
runHook preCheck
export HOME=$(mktemp -d)
busted --lua=nlua --lpath='lua/?.lua' --lpath='lua/?/init.lua' tests/
runHook postCheck
'';
});
luaossl = prev.luaossl.overrideAttrs (_: {
externalDeps = [
{