Merge pull request #195431 from figsoda/vusted

This commit is contained in:
Matthieu Coudron 2022-10-11 10:02:31 +02:00 committed by GitHub
commit c154af76d1
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 42 additions and 1 deletions

View file

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

Can't render this file because it has a wrong number of fields in line 90.

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

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