Skip to content

Commit f30319b

Browse files
committed
lua51Packages.lualine-nvim: init
vimPlugins.lualine-nvim: use buildNeovimPlugin instead now packaged from lua
1 parent 18c9983 commit f30319b

File tree

6 files changed

+43
-14
lines changed

6 files changed

+43
-14
lines changed

maintainers/scripts/luarocks-packages.csv

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -81,6 +81,7 @@ luaexpat,,,,1.4.1-1,,arobyn flosse
8181
luaffi,,,http://luarocks.org/dev,,,
8282
luafilesystem,,,,1.8.0-1,,flosse
8383
lualdap,,,,,,aanderse
84+
lualine.nvim,,,http://luarocks.org/dev,,,
8485
lualogging,,,,,,
8586
luaossl,,,,,5.1,
8687
luaposix,,,,34.1.1-1,,vyp lblasc

pkgs/applications/editors/vim/plugins/generated.nix

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -7051,19 +7051,6 @@ final: prev:
70517051
meta.hydraPlatforms = [ ];
70527052
};
70537053

7054-
lualine-nvim = buildVimPlugin {
7055-
pname = "lualine.nvim";
7056-
version = "2025-02-08";
7057-
src = fetchFromGitHub {
7058-
owner = "nvim-lualine";
7059-
repo = "lualine.nvim";
7060-
rev = "f4f791f67e70d378a754d02da068231d2352e5bc";
7061-
sha256 = "12jm3vc3mi0p9kjw7g1cd6a9nkgws1mvq2h7lpfmflad8zfmw35q";
7062-
};
7063-
meta.homepage = "https://github.com/nvim-lualine/lualine.nvim/";
7064-
meta.hydraPlatforms = [ ];
7065-
};
7066-
70677054
luasnip-latex-snippets-nvim = buildVimPlugin {
70687055
pname = "luasnip-latex-snippets.nvim";
70697056
version = "2024-11-25";

pkgs/applications/editors/vim/plugins/overrides.nix

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4004,6 +4004,7 @@ in
40044004
"gitsigns-nvim"
40054005
"image-nvim"
40064006
"lsp-progress-nvim"
4007+
"lualine-nvim"
40074008
"luasnip"
40084009
"lush-nvim"
40094010
"lz-n"

pkgs/applications/editors/vim/plugins/vim-plugin-names

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -540,7 +540,6 @@ https://github.com/nvimdev/lspsaga.nvim/,,
540540
https://github.com/barreiroleo/ltex_extra.nvim/,HEAD,
541541
https://github.com/nvim-java/lua-async/,HEAD,
542542
https://github.com/arkav/lualine-lsp-progress/,,
543-
https://github.com/nvim-lualine/lualine.nvim/,,
544543
https://github.com/evesdropper/luasnip-latex-snippets.nvim/,HEAD,
545544
https://github.com/alvarosevilla95/luatab.nvim/,,
546545
https://github.com/mkasa/lushtags/,,

pkgs/development/lua-modules/generated-packages.nix

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1946,6 +1946,31 @@ buildLuarocksPackage {
19461946
};
19471947
}) {};
19481948

1949+
lualine-nvim = callPackage({ buildLuarocksPackage, fetchFromGitHub, fetchurl, luaOlder, nvim-web-devicons }:
1950+
buildLuarocksPackage {
1951+
pname = "lualine.nvim";
1952+
version = "scm-1";
1953+
knownRockspec = (fetchurl {
1954+
url = "mirror://luarocks/lualine.nvim-scm-1.rockspec";
1955+
sha256 = "1mzsfiq4h95s0nbygwii2w8xs5rixdbha322bvx453k530s2kxxj";
1956+
}).outPath;
1957+
src = fetchFromGitHub {
1958+
owner = "nvim-lualine";
1959+
repo = "lualine.nvim";
1960+
rev = "f4f791f67e70d378a754d02da068231d2352e5bc";
1961+
hash = "sha256-uAxe3UdNUVfdpQcKvGvQ/E2blGksvMPlTBfEOtgeVYo=";
1962+
};
1963+
1964+
disabled = luaOlder "5.1";
1965+
propagatedBuildInputs = [ nvim-web-devicons ];
1966+
1967+
meta = {
1968+
homepage = "https://github.com/nvim-lualine/lualine.nvim";
1969+
description = "A blazing fast and easy to configure neovim statusline plugin written in pure lua.";
1970+
license.fullName = "MIT";
1971+
};
1972+
}) {};
1973+
19491974
lualogging = callPackage({ buildLuarocksPackage, fetchFromGitHub, fetchurl, luasocket }:
19501975
buildLuarocksPackage {
19511976
pname = "lualogging";

pkgs/development/lua-modules/overrides.nix

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,7 @@
5858
zlib,
5959
zziplib,
6060
writableTmpDirAsHomeHook,
61+
gitMinimal,
6162
}:
6263

6364
final: prev:
@@ -494,6 +495,21 @@ in
494495
];
495496
});
496497

498+
lualine-nvim = prev.lualine-nvim.overrideAttrs (_: {
499+
doCheck = lua.luaversion == "5.1";
500+
nativeCheckInputs = [
501+
final.nlua
502+
final.busted
503+
gitMinimal
504+
];
505+
checkPhase = ''
506+
runHook preCheck
507+
export HOME=$(mktemp -d)
508+
busted --lua=nlua --lpath='lua/?.lua' --lpath='lua/?/init.lua' tests/
509+
runHook postCheck
510+
'';
511+
});
512+
497513
luaossl = prev.luaossl.overrideAttrs (_: {
498514
externalDeps = [
499515
{

0 commit comments

Comments
 (0)