diff --git a/maintainers/scripts/luarocks-packages.csv b/maintainers/scripts/luarocks-packages.csv index dacc0c83a4f2..ce9c099e8a3f 100644 --- a/maintainers/scripts/luarocks-packages.csv +++ b/maintainers/scripts/luarocks-packages.csv @@ -87,7 +87,7 @@ mediator_lua,,,,,, mpack,,,,,, moonscript,https://github.com/leafo/moonscript.git,dev-1,,,,arobyn nvim-client,https://github.com/neovim/lua-client.git,,,,, -nvim-cmp,,,,, +nvim-cmp,,,,,, penlight,https://github.com/lunarmodules/Penlight.git,,,,,alerque plenary.nvim,https://github.com/nvim-lua/plenary.nvim.git,,,,5.1, rapidjson,https://github.com/xpol/lua-rapidjson.git,,,,, @@ -101,3 +101,4 @@ std.normalize,https://github.com/lua-stdlib/normalize.git,,,,, stdlib,,,,41.2.2,,vyp tl,,,,,,mephistophiles vstruct,https://github.com/ToxicFrog/vstruct.git,,,,, +vusted,,,,,,figsoda diff --git a/pkgs/development/lua-modules/generated-packages.nix b/pkgs/development/lua-modules/generated-packages.nix index ee51d74fc75f..d3b9695fbefa 100644 --- a/pkgs/development/lua-modules/generated-packages.nix +++ b/pkgs/development/lua-modules/generated-packages.nix @@ -3021,6 +3021,39 @@ buildLuarocksPackage { }; }) {}; +vusted = callPackage({ buildLuarocksPackage, luaOlder, luaAtLeast +, fetchgit, busted +}: +buildLuarocksPackage { + pname = "vusted"; + version = "2.1.1-1"; + knownRockspec = (fetchurl { + url = "mirror://luarocks/vusted-2.1.1-1.rockspec"; + sha256 = "12zw09ib3mmwh1kvcj228dhws2ldvwzymr7qbsq6l5kysaahhjm3"; + }).outPath; + src = fetchgit ( removeAttrs (builtins.fromJSON ''{ + "url": "https://github.com/notomo/vusted.git", + "rev": "9607444b9e259b82c0615caabb5fea8cea918edc", + "date": "2022-09-12T21:55:42+09:00", + "path": "/nix/store/pb5inf25lr63bbc1mvx8aqlh83i4ynwd-vusted", + "sha256": "0wv5lmzf36ga0lmyh0xaw4g2jz9hmw4766xmpznbhn2p64lm9kyl", + "fetchLFS": false, + "fetchSubmodules": true, + "deepClone": false, + "leaveDotGit": false +} + '') ["date" "path"]) ; + + propagatedBuildInputs = [ busted ]; + + meta = { + homepage = "https://github.com/notomo/vusted"; + description = "`busted` wrapper for testing neovim plugin"; + maintainers = with lib.maintainers; [ figsoda ]; + license.fullName = "MIT "; + }; +}) {}; + } /* GENERATED - do not edit this file */ diff --git a/pkgs/development/lua-modules/overrides.nix b/pkgs/development/lua-modules/overrides.nix index 1ff2101b1462..a59f1d94da91 100644 --- a/pkgs/development/lua-modules/overrides.nix +++ b/pkgs/development/lua-modules/overrides.nix @@ -514,6 +514,13 @@ with prev; ''; }); + vusted = prev.vusted.overrideAttrs (_: { + # make sure vusted_entry.vim doesn't get wrapped + postInstall = '' + chmod -x $out/bin/vusted_entry.vim + ''; + }); + # TODO just while testing, remove afterwards # toVimPlugin should do it instead gitsigns-nvim = prev.gitsigns-nvim.overrideAttrs (oa: {