git.iko.soy/typeable/nixpkgs
on master help sign in
Merge pull request #62669 from teto/lua-lsp

Add one latex and one lua LSP server

commitf2f1726a9f3b05d6031b6cd4d124632d205cde31 authorMatthieu Coudron <mattator@gmail.com> dateWed 5 Jun 2019, 12:36 (7 years ago) parent947c8141b2e667
2 files changed+80
maintainers/scripts/luarocks-packages.csv+3 pkgs/development/lua-modules/generated-packages.nix+77
maintainers/scripts/luarocks-packages.csv+3
@@ -3,6 +3,7 @@ ansicolors,,,,
33argparse,,,,
44basexx,,,,
55binaryheap,,,,
6+digestif,,http://luarocks.org/dev,,lua5_3
67dkjson,,,,
78fifo,,,,
89http,,,,
@@ -10,6 +11,7 @@ inspect,,,,
1011ldoc,,,,
1112lgi,,,,
1213lpeg_patterns,,,,
14+lpeglabel,,,,
1315lpty,,,,
1416lrexlib-gnu,,,,
1517lrexlib-posix,,,,
@@ -17,6 +19,7 @@ ltermbox,,,,
1719lua-cmsgpack,,,,
1820lua_cliargs,,,,
1921lua-iconv,,,,
22+lua-lsp,,http://luarocks.org/dev,,
2023lua-messagepack,,,,
2124lua-term,,,,
2225lua-toml,,,,
pkgs/development/lua-modules/generated-packages.nix+77
@@ -92,6 +92,35 @@ binaryheap = buildLuarocksPackage {
9292 };
9393 };
9494};
95+digestif = buildLuarocksPackage {
96+ pname = "digestif";
97+ version = "scm-1";
98+
99+ knownRockspec = (fetchurl {
100+ url = http://luarocks.org/dev/digestif-scm-1.rockspec;
101+ sha256 = "18rixbni4hmrmh3qj3vpjbsphzdvchswajphc9ysm52ccpyzh687";
102+ }).outPath;
103+
104+ src = fetchgit ( removeAttrs (builtins.fromJSON ''{
105+ "url": "git://github.com/astoff/digestif",
106+ "rev": "19442554ae18607707f09e6663d65bb8bb4ebb58",
107+ "date": "2019-06-01T15:41:36+02:00",
108+ "sha256": "1sglkgx2s1xc725h9b97jhfbi3scs32si83xss5m3n0xidwmlbzb",
109+ "fetchSubmodules": true
110+}
111+ '') ["date"]) ;
112+
113+ disabled = (luaOlder "5.3");
114+ propagatedBuildInputs = [ lua lpeg dkjson ];
115+
116+ meta = {
117+ homepage = "https://github.com/astoff/digestif/";
118+ description = "Code analyzer for TeX.";
119+ license = {
120+ fullName = "MIT";
121+ };
122+ };
123+};
95124dkjson = buildLuarocksPackage {
96125 pname = "dkjson";
97126 version = "2.5-2";
@@ -228,6 +257,25 @@ lpeg_patterns = buildLuarocksPackage {
228257 };
229258 };
230259};
260+lpeglabel = buildLuarocksPackage {
261+ pname = "lpeglabel";
262+ version = "1.5.0-1";
263+
264+ src = fetchurl {
265+ url = https://luarocks.org/lpeglabel-1.5.0-1.src.rock;
266+ sha256 = "068mwvwwn5n69pdm04qnk354391w9mk34jsczxql0xi5qgmz6w8j";
267+ };
268+ disabled = (luaOlder "5.1");
269+ propagatedBuildInputs = [ lua ];
270+
271+ meta = {
272+ homepage = "https://github.com/sqmedeiros/lpeglabel/";
273+ description = "Parsing Expression Grammars For Lua with Labeled Failures";
274+ license = {
275+ fullName = "MIT/X11";
276+ };
277+ };
278+};
231279lpty = buildLuarocksPackage {
232280 pname = "lpty";
233281 version = "1.2.2-1";
@@ -371,6 +419,35 @@ lua-iconv = buildLuarocksPackage {
371419 };
372420 };
373421};
422+lua-lsp = buildLuarocksPackage {
423+ pname = "lua-lsp";
424+ version = "scm-2";
425+
426+ knownRockspec = (fetchurl {
427+ url = http://luarocks.org/dev/lua-lsp-scm-2.rockspec;
428+ sha256 = "0qk3i6j0km4d1fs61fxhkmnbxmgpq24nygr8wknl6hbj2kya25rb";
429+ }).outPath;
430+
431+ src = fetchgit ( removeAttrs (builtins.fromJSON ''{
432+ "url": "git://github.com/Alloyed/lua-lsp",
433+ "rev": "0de511803ed616214333210a2d003cf05a64dc18",
434+ "date": "2018-09-08T10:11:54-04:00",
435+ "sha256": "15dnsyh5664vi7qn73y2r114rhs5l9lfi84pwqkq5cafkiiy49qa",
436+ "fetchSubmodules": true
437+}
438+ '') ["date"]) ;
439+
440+ disabled = (luaOlder "5.1") || (luaAtLeast "5.4");
441+ propagatedBuildInputs = [ lua dkjson lpeglabel inspect ];
442+
443+ meta = {
444+ homepage = "https://github.com/Alloyed/lua-lsp";
445+ description = "No summary";
446+ license = {
447+ fullName = "MIT";
448+ };
449+ };
450+};
374451lua-messagepack = buildLuarocksPackage {
375452 pname = "lua-messagepack";
376453 version = "0.5.1-2";