Merge pull request #78432 from teto/lua_for_sile

Lua for sile
This commit is contained in:
Matthieu Coudron 2020-01-25 20:16:30 +01:00 committed by GitHub
commit 29b5473241
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 99 additions and 30 deletions

View File

@ -11,13 +11,14 @@ compat53,,,,,vcunat
coxpcall,,,1.17.0-1,,
cqueues,,,,,vcunat
cyrussasl,,,,,vcunat
digestif,,http://luarocks.org/dev,,lua5_3,
digestif,,,,lua5_3,
dkjson,,,,,
fifo,,,,,
http,,,,,vcunat
inspect,,,,,
ldoc,,,,,
lgi,,,,,
linenoise,,,,,
ljsyscall,,,,lua5_1,lblasc
lpeg,,,,,vyp
lpeg_patterns,,,,,
@ -43,6 +44,7 @@ luadbi-mysql,,,,,
luadbi-postgresql,,,,,
luadbi-sqlite3,,,,,
luadoc,,,,,
luaepnf,,,,,
luaevent,,,,,
luaexpat,,,1.3.0-1,,arobyn flosse
luaffi,,http://luarocks.org/dev,,,
@ -50,6 +52,7 @@ luafilesystem,,,1.7.0-2,,flosse vcunat
lualogging,,,,,
luaossl,,,,lua5_1,vcunat
luaposix,,,,,vyp lblasc
luarepl,,,,,
luasec,,,,,flosse
luasocket,,,,,
luasql-sqlite3,,,,,vyp
@ -72,3 +75,4 @@ std__debug,std._debug,,,,
std_normalize,std.normalize,,,,
stdlib,,,,,vyp
pulseaudio,,,,,doronbehar
vstruct,,,,,

1 # nix name luarocks name server version luaversion maintainers
11 coxpcall 1.17.0-1
12 cqueues vcunat
13 cyrussasl vcunat
14 digestif http://luarocks.org/dev lua5_3
15 dkjson
16 fifo
17 http vcunat
18 inspect
19 ldoc
20 lgi
21 linenoise
22 ljsyscall lua5_1 lblasc
23 lpeg vyp
24 lpeg_patterns
44 luadbi-postgresql
45 luadbi-sqlite3
46 luadoc
47 luaepnf
48 luaevent
49 luaexpat 1.3.0-1 arobyn flosse
50 luaffi http://luarocks.org/dev
52 lualogging
53 luaossl lua5_1 vcunat
54 luaposix vyp lblasc
55 luarepl
56 luasec flosse
57 luasocket
58 luasql-sqlite3 vyp
75 std_normalize std.normalize
76 stdlib vyp
77 pulseaudio doronbehar
78 vstruct

View File

@ -19,7 +19,7 @@ export LUAROCKS_CONFIG="$NIXPKGS_PATH/maintainers/scripts/luarocks-config.lua"
# 10 is a pretty arbitrary number of simultaneous jobs, but it is generally
# impolite to hit a webserver with *too* many simultaneous connections :)
PARALLEL_JOBS=10
PARALLEL_JOBS=1
exit_trap() {
local lc="$BASH_COMMAND" rc=$?

View File

@ -266,28 +266,18 @@ cyrussasl = buildLuarocksPackage {
};
digestif = buildLuarocksPackage {
pname = "digestif";
version = "scm-1";
knownRockspec = (fetchurl {
url = http://luarocks.org/dev/digestif-scm-1.rockspec;
sha256 = "18rixbni4hmrmh3qj3vpjbsphzdvchswajphc9ysm52ccpyzh687";
}).outPath;
src = fetchgit ( removeAttrs (builtins.fromJSON ''{
"url": "git://github.com/astoff/digestif",
"rev": "51c321f1b68b77f648fa6adf356de48925f69fe0",
"date": "2019-06-08T15:03:33+02:00",
"sha256": "1c9cl81vfzirc325wipdy992yn20b8xv8nqzl5mdhyz8zfp84hs7",
"fetchSubmodules": true
}
'') ["date"]) ;
version = "0.2-1";
src = fetchurl {
url = mirror://luarocks/digestif-0.2-1.src.rock;
sha256 = "03blpj5lxlhmxa4hnj21sz7sc84g96igbc7r97yb2smmlbyq8hxd";
};
disabled = (luaOlder "5.3");
propagatedBuildInputs = [ lua lpeg dkjson ];
meta = with stdenv.lib; {
homepage = "https://github.com/astoff/digestif/";
description = "Code analyzer for TeX.";
description = "A code analyzer for TeX";
license = {
fullName = "MIT";
};
@ -412,6 +402,31 @@ lgi = buildLuarocksPackage {
};
};
};
linenoise = buildLuarocksPackage {
pname = "linenoise";
version = "0.9-1";
knownRockspec = (fetchurl {
url = mirror://luarocks/linenoise-0.9-1.rockspec;
sha256 = "0wic8g0d066pj9k51farsvcdbnhry2hphvng68w9k4lh0zh45yg4";
}).outPath;
src = fetchurl {
url = https://github.com/hoelzro/lua-linenoise/archive/0.9.tar.gz;
sha256 = "177h6gbq89arwiwxah9943i8hl5gvd9wivnd1nhmdl7d8x0dn76c";
};
disabled = (luaOlder "5.1");
propagatedBuildInputs = [ lua ];
meta = with stdenv.lib; {
homepage = "https://github.com/hoelzro/lua-linenoise";
description = "A binding for the linenoise command line library";
license = {
fullName = "MIT/X11";
};
};
};
ljsyscall = buildLuarocksPackage {
pname = "ljsyscall";
version = "0.12-1";
@ -918,9 +933,24 @@ luadoc = buildLuarocksPackage {
meta = with stdenv.lib; {
homepage = "http://luadoc.luaforge.net/";
description = "LuaDoc is a documentation tool for Lua source code";
license = {
fullName = "MIT/X11";
};
license.fullName = "MIT/X11";
};
};
luaepnf = buildLuarocksPackage {
pname = "luaepnf";
version = "0.3-1";
src = fetchurl {
url = mirror://luarocks/luaepnf-0.3-1.src.rock;
sha256 = "12z7radxk1dkyjqflr85sghywgc82xdg4mzb9mbwbrrqbnjw8mp5";
};
disabled = (luaOlder "5.1") || (luaAtLeast "5.4");
propagatedBuildInputs = [ lua lpeg ];
meta = with stdenv.lib; {
homepage = "http://siffiejoe.github.io/lua-luaepnf/";
description = "Extended PEG Notation Format (easy grammars for LPeg)";
license.fullName = "MIT";
};
};
luaevent = buildLuarocksPackage {
@ -1053,9 +1083,30 @@ luaposix = buildLuarocksPackage {
homepage = "https://github.com/luaposix/luaposix/";
description = "Lua bindings for POSIX";
maintainers = with maintainers; [ vyp lblasc ];
license = {
fullName = "MIT/X11";
};
license.fullName = "MIT/X11";
};
};
luarepl = buildLuarocksPackage {
pname = "luarepl";
version = "0.9-1";
knownRockspec = (fetchurl {
url = mirror://luarocks/luarepl-0.9-1.rockspec;
sha256 = "1409lanxv4s8kq5rrh46dvld77ip33qzfn3vac3i9zpzbmgb5i8z";
}).outPath;
src = fetchurl {
url = https://github.com/hoelzro/lua-repl/archive/0.9.tar.gz;
sha256 = "04xka7b84d9mrz3gyf8ywhw08xp65v8jrnzs8ry8k9540aqs721w";
};
disabled = (luaOlder "5.1");
propagatedBuildInputs = [ lua ];
meta = with stdenv.lib; {
homepage = "https://github.com/hoelzro/lua-repl";
description = "A reusable REPL component for Lua, written in Lua";
license.fullName = "MIT/X11";
};
};
luasec = buildLuarocksPackage {
@ -1485,9 +1536,23 @@ stdlib = buildLuarocksPackage {
homepage = "http://lua-stdlib.github.io/lua-stdlib";
description = "General Lua Libraries";
maintainers = with maintainers; [ vyp ];
license = {
fullName = "MIT/X11";
};
license.fullName = "MIT/X11";
};
};
vstruct = buildLuarocksPackage {
pname = "vstruct";
version = "2.0.2-1";
src = fetchurl {
url = mirror://luarocks/vstruct-2.0.2-1.src.rock;
sha256 = "05k1685618wh7vg8av92mh1i1rjqg15x12gifbp9kyqzc2nk3kzq";
};
disabled = (luaOlder "5.1") || (luaAtLeast "5.3");
propagatedBuildInputs = [ lua ];
meta = with stdenv.lib; {
homepage = "https://github.com/ToxicFrog/vstruct";
description = "Lua library to manipulate binary data";
};
};

View File

@ -4,9 +4,9 @@ luarocks.overrideAttrs(old: {
version = "2019-09-07";
src = fetchFromGitHub {
owner = "nix-community";
repo = "luarocks";
rev = "fa7c367bcdad36768db5f19fd4fcdd9681a14429";
sha256 = "0kziwfw5gqq5xsckl7qf9wasaiy8rp42h5qrcnjx07qp47a9ldx7";
repo = "luarocks-nix";
rev = "73b8772e56fd39dfffda9e3b13e9eb31e93d5cde";
sha256 = "00jgshygw439pbaxg7yph3ijia6nid9r1br416wdbyl5wqhlhm1y";
};
patches = [
./darwin-3.1.3.patch