diff --git a/maintainers/scripts/luarocks-packages.csv b/maintainers/scripts/luarocks-packages.csv index 37d8c2006d33..ce9c099e8a3f 100644 --- a/maintainers/scripts/luarocks-packages.csv +++ b/maintainers/scripts/luarocks-packages.csv @@ -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 e5d5e1118553..e3b4db758238 100644 --- a/pkgs/development/lua-modules/overrides.nix +++ b/pkgs/development/lua-modules/overrides.nix @@ -513,6 +513,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: {