luaPackages.vusted: init at 2.1.1-1

This commit is contained in:
figsoda 2022-10-10 19:20:03 -04:00
parent be8d6387c4
commit d1742000db
3 changed files with 41 additions and 0 deletions

View File

@ -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

1 name src ref server version luaversion maintainers
101 stdlib 41.2.2 vyp
102 tl mephistophiles
103 vstruct https://github.com/ToxicFrog/vstruct.git
104 vusted figsoda

View File

@ -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 <http://opensource.org/licenses/MIT>";
};
}) {};
}
/* GENERATED - do not edit this file */

View File

@ -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: {