diff options
author | Alyssa Ross <hi@alyssa.is> | 2019-02-24 01:09:00 +0000 |
---|---|---|
committer | Alyssa Ross <hi@alyssa.is> | 2019-02-24 01:09:00 +0000 |
commit | 072c01a28f865e9487df09aed7ddff328252fb36 (patch) | |
tree | 6df6e652915940255f294ed8998cce1c4c7c2d40 /nixpkgs/pkgs/development/lua-modules | |
parent | 024b46ff20027c15322e5d868ecec42632556d4b (diff) | |
parent | 969cff2691a02b3d7e5468beda26c482d8986644 (diff) | |
download | nixlib-072c01a28f865e9487df09aed7ddff328252fb36.tar nixlib-072c01a28f865e9487df09aed7ddff328252fb36.tar.gz nixlib-072c01a28f865e9487df09aed7ddff328252fb36.tar.bz2 nixlib-072c01a28f865e9487df09aed7ddff328252fb36.tar.lz nixlib-072c01a28f865e9487df09aed7ddff328252fb36.tar.xz nixlib-072c01a28f865e9487df09aed7ddff328252fb36.tar.zst nixlib-072c01a28f865e9487df09aed7ddff328252fb36.zip |
Merge commit '969cff2691a02b3d7e5468beda26c482d8986644'
Diffstat (limited to 'nixpkgs/pkgs/development/lua-modules')
-rw-r--r-- | nixpkgs/pkgs/development/lua-modules/generated-packages.nix | 238 | ||||
-rw-r--r-- | nixpkgs/pkgs/development/lua-modules/overrides.nix | 38 |
2 files changed, 262 insertions, 14 deletions
diff --git a/nixpkgs/pkgs/development/lua-modules/generated-packages.nix b/nixpkgs/pkgs/development/lua-modules/generated-packages.nix index dc15a7a9ad67..7da4a9eeddf3 100644 --- a/nixpkgs/pkgs/development/lua-modules/generated-packages.nix +++ b/nixpkgs/pkgs/development/lua-modules/generated-packages.nix @@ -50,6 +50,46 @@ argparse = buildLuarocksPackage { }; }; }; +basexx = buildLuarocksPackage { + pname = "basexx"; + version = "0.4.0-1"; + + src = fetchurl { + url = https://luarocks.org/basexx-0.4.0-1.src.rock; + sha256 = "1px8yrxg1qkk3kzdqj3siry742jdv4ysp2dmicxi15mkynqpjlzz"; + }; + disabled = ( luaOlder "5.1"); + propagatedBuildInputs = [lua ]; + buildType="builtin"; + + meta = { + homepage = "https://github.com/aiq/basexx"; + description="A base2, base16, base32, base64 and base85 library for Lua"; + license = { + fullName = "MIT"; + }; + }; +}; +cqueues = buildLuarocksPackage { + pname = "cqueues"; + version = "20171014.52-0"; + + src = fetchurl { + url = https://luarocks.org/cqueues-20171014.52-0.src.rock; + sha256 = "0q3iy1ja20nq2sn2n6badzhjq5kni86pfc09n5g2c46q9ja3vfzx"; + }; + disabled = ( lua.luaversion != "5.2"); + propagatedBuildInputs = [lua ]; + buildType="make"; + + meta = { + homepage = "http://25thandclement.com/~william/projects/cqueues.html"; + description="Continuation Queues: Embeddable asynchronous networking, threading, and notification framework for Lua on Unix."; + license = { + fullName = "MIT/X11"; + }; + }; +}; dkjson = buildLuarocksPackage { pname = "dkjson"; version = "2.5-2"; @@ -70,6 +110,26 @@ dkjson = buildLuarocksPackage { }; }; }; +fifo = buildLuarocksPackage { + pname = "fifo"; + version = "0.2-0"; + + src = fetchurl { + url = https://luarocks.org/fifo-0.2-0.src.rock; + sha256 = "082c5g1m8brnsqj5gnjs65bm7z50l6b05cfwah14lqaqsr5a5pjk"; + }; + + propagatedBuildInputs = [lua ]; + buildType="builtin"; + + meta = { + homepage = "https://github.com/daurnimator/fifo.lua"; + description="A lua library/'class' that implements a FIFO"; + license = { + fullName = "MIT/X11"; + }; + }; +}; inspect = buildLuarocksPackage { pname = "inspect"; version = "3.1.1-0"; @@ -90,6 +150,66 @@ inspect = buildLuarocksPackage { }; }; }; +lgi = buildLuarocksPackage { + pname = "lgi"; + version = "0.9.2-1"; + + src = fetchurl { + url = https://luarocks.org/lgi-0.9.2-1.src.rock; + sha256 = "07ajc5pdavp785mdyy82n0w6d592n96g95cvq025d6i0bcm2cypa"; + }; + disabled = ( luaOlder "5.1"); + propagatedBuildInputs = [lua ]; + buildType="make"; + + meta = { + homepage = "http://github.com/pavouk/lgi"; + description="Lua bindings to GObject libraries"; + license = { + fullName = "MIT/X11"; + }; + }; +}; +lpeg_patterns = buildLuarocksPackage { + pname = "lpeg_patterns"; + version = "0.5-0"; + + src = fetchurl { + url = https://luarocks.org/lpeg_patterns-0.5-0.src.rock; + sha256 = "0mlw4nayrsdxrh98i26avz5i4170a9brciybw88kks496ra36v8f"; + }; + + propagatedBuildInputs = [lua lpeg ]; + buildType="builtin"; + + meta = { + homepage = "https://github.com/daurnimator/lpeg_patterns/archive/v0.5.zip"; + description="a collection of LPEG patterns"; + license = { + fullName = "MIT"; + }; + }; +}; +lpty = buildLuarocksPackage { + pname = "lpty"; + version = "1.2.2-1"; + + src = fetchurl { + url = https://luarocks.org/lpty-1.2.2-1.src.rock; + sha256 = "1vxvsjgjfirl6ranz6k4q4y2dnxqh72bndbk400if22x8lqbkxzm"; + }; + disabled = ( luaOlder "5.1"); + propagatedBuildInputs = [lua ]; + buildType="make"; + + meta = { + homepage = "http://www.tset.de/lpty/"; + description="A simple facility for lua to control other programs via PTYs."; + license = { + fullName = "MIT"; + }; + }; +}; lrexlib-gnu = buildLuarocksPackage { pname = "lrexlib-gnu"; version = "2.9.0-1"; @@ -167,7 +287,7 @@ lua-cmsgpack = buildLuarocksPackage { "fetchSubmodules": true } '') ["date"]) ; - + disabled = ( luaOlder "5.1"); propagatedBuildInputs = [lua ]; buildType="builtin"; @@ -200,6 +320,26 @@ lua_cliargs = buildLuarocksPackage { }; }; }; +lua-iconv = buildLuarocksPackage { + pname = "lua-iconv"; + version = "7-3"; + + src = fetchurl { + url = https://luarocks.org/lua-iconv-7-3.src.rock; + sha256 = "03xibhcqwihyjhxnzv367q4bfmzmffxl49lmjsq77g0prw8v0q83"; + }; + disabled = ( luaOlder "5.1"); + propagatedBuildInputs = [lua ]; + buildType="builtin"; + + meta = { + homepage = "http://ittner.github.com/lua-iconv/"; + description="Lua binding to the iconv"; + license = { + fullName = "MIT/X11"; + }; + }; +}; lua-term = buildLuarocksPackage { pname = "lua-term"; version = "0.7-1"; @@ -213,9 +353,9 @@ lua-term = buildLuarocksPackage { url = https://github.com/hoelzro/lua-term/archive/0.07.tar.gz; sha256 = "0c3zc0cl3a5pbdn056vnlan16g0wimv0p9bq52h7w507f72x18f1"; }; - - - + + + buildType="builtin"; meta = { @@ -226,6 +366,76 @@ lua-term = buildLuarocksPackage { }; }; }; +luaevent = buildLuarocksPackage { + pname = "luaevent"; + version = "0.4.6-1"; + + src = fetchurl { + url = https://luarocks.org/luaevent-0.4.6-1.src.rock; + sha256 = "0chq09nawiz00lxd6pkdqcb8v426gdifjw6js3ql0lx5vqdkb6dz"; + }; + disabled = ( luaOlder "5.1"); + propagatedBuildInputs = [lua ]; + buildType="builtin"; + + meta = { + homepage = "https://github.com/harningt/luaevent"; + description="libevent binding for Lua"; + license = { + fullName = "MIT"; + }; + }; +}; +luabitop = buildLuarocksPackage { + pname = "luabitop"; + version = "1.0.2-3"; + + knownRockspec = ( fetchurl { + url = https://luarocks.org/luabitop-1.0.2-3.rockspec; + sha256 = "07y2h11hbxmby7kyhy3mda64w83p4a6p7y7rzrjqgc0r56yjxhcc"; + }).outPath; + + src = fetchgit ( removeAttrs (builtins.fromJSON ''{ + "url": "git://github.com/LuaDist/luabitop.git", + "rev": "81bb23b0e737805442033535de8e6d204d0e5381", + "date": "2013-02-18T16:36:42+01:00", + "sha256": "0lsc556hlkddjbmcdbg7wc2g55bfy743p8ywdzl8x7kk847r043q", + "fetchSubmodules": true +} + '') ["date"]) ; + + disabled = ( luaOlder "5.1") || ( luaAtLeast "5.3"); + propagatedBuildInputs = [lua ]; + buildType="builtin"; + + meta = { + homepage = "http://bitop.luajit.org/"; + description="Lua Bit Operations Module"; + license = { + fullName = "MIT/X license"; + }; + }; +}; +luacheck = buildLuarocksPackage { + pname = "luacheck"; + version = "0.23.0-1"; + + src = fetchurl { + url = https://luarocks.org/luacheck-0.23.0-1.src.rock; + sha256 = "0akj61c7k1na2mggsckvfn9a3ljfp4agnmr9gp3mac4vin99a1cl"; + }; + disabled = ( luaOlder "5.1") || ( luaAtLeast "5.4"); + propagatedBuildInputs = [lua argparse luafilesystem ]; + buildType="builtin"; + + meta = { + homepage = "https://github.com/mpeterv/luacheck"; + description="A static analyzer and a linter for Lua"; + license = { + fullName = "MIT"; + }; + }; +}; luaffi = buildLuarocksPackage { pname = "luaffi"; version = "scm-1"; @@ -279,8 +489,8 @@ penlight = buildLuarocksPackage { url = http://stevedonovan.github.io/files/penlight-1.5.4.zip; sha256 = "138f921p6kdqkmf4pz115phhj0jsqf28g33avws80d2vq2ixqm8q"; }; - - + + propagatedBuildInputs = [luafilesystem ]; buildType="builtin"; @@ -305,7 +515,7 @@ say = buildLuarocksPackage { url = https://github.com/Olivine-Labs/say/archive/v1.3-1.tar.gz; sha256 = "1jh76mxq9dcmv7kps2spwcc6895jmj2sf04i4y9idaxlicvwvs13"; }; - + disabled = ( luaOlder "5.1"); propagatedBuildInputs = [lua ]; buildType="builtin"; @@ -331,7 +541,7 @@ luv = buildLuarocksPackage { url = https://github.com/luvit/luv/releases/download/1.22.0-1/luv-1.22.0-1.tar.gz; sha256 = "1xvz4a0r6kd1xqxwm55g9n6imprxb79600x7dhyillrz7p5nm217"; }; - + disabled = ( luaOlder "5.1"); propagatedBuildInputs = [lua ]; buildType="cmake"; @@ -392,8 +602,8 @@ mpack = buildLuarocksPackage { url = http://luarocks.org/manifests/teto/mpack-1.0.7-0.src.rock; sha256 = "0nq4ixaminkc7fwfpivysyv0al3j5dffsvgdrnwnqdg3w7jgfbw7"; }; - - + + buildType="builtin"; meta = { @@ -437,7 +647,7 @@ busted = buildLuarocksPackage { url = https://github.com/Olivine-Labs/busted/archive/v2.0.rc13-0.tar.gz; sha256 = "0m72bldn1r6j94ahcfmpaq1mmysrshf9qi9fjas7hpal0jp8ivvl"; }; - + disabled = ( luaOlder "5.1"); propagatedBuildInputs = [lua lua_cliargs luafilesystem luasystem dkjson say luassert lua-term penlight mediator_lua ]; buildType="builtin"; @@ -463,7 +673,7 @@ luassert = buildLuarocksPackage { url = https://github.com/Olivine-Labs/luassert/archive/v1.7.11.tar.gz; sha256 = "1vwq3wqj9cjyz9lnf1n38yhpcglr2h40v3n9096i8vcpmyvdb3ka"; }; - + disabled = ( luaOlder "5.1"); propagatedBuildInputs = [lua say ]; buildType="builtin"; @@ -484,8 +694,8 @@ coxpcall = buildLuarocksPackage { url = https://luarocks.org/manifests/hisham/coxpcall-1.17.0-1.src.rock; sha256 = "0n1jmda4g7x06458596bamhzhcsly6x0p31yp6q3jz4j11zv1zhi"; }; - - + + buildType="builtin"; meta = { diff --git a/nixpkgs/pkgs/development/lua-modules/overrides.nix b/nixpkgs/pkgs/development/lua-modules/overrides.nix index 20a24681b6ae..b78f7f9c0079 100644 --- a/nixpkgs/pkgs/development/lua-modules/overrides.nix +++ b/nixpkgs/pkgs/development/lua-modules/overrides.nix @@ -5,6 +5,30 @@ with super; ##########################################3 #### manual fixes for generated packages ##########################################3 + cqueues = super.cqueues.override({ + nativeBuildInputs = [ pkgs.gnum4 ]; + buildInputs = [ pkgs.openssl ]; + extraConfig = with pkgs; '' + variables={ + CRYPTO_INCDIR="${openssl.dev}/include"; + CRYPTO_LIBDIR="${openssl.out}/lib"; + OPENSSL_INCDIR="${openssl.dev}/include"; + OPENSSL_LIBDIR="${openssl.out}/lib"; + } + ''; + }); + + lgi = super.lgi.overrideAttrs(oa: { + nativeBuildInputs = [ pkgs.pkgconfig ]; + buildInputs = with pkgs; oa.buildInputs ++ [ glib gobjectIntrospection]; + patches = [ + (pkgs.fetchpatch { + name = "lgi-find-cairo-through-typelib.patch"; + url = "https://github.com/psychon/lgi/commit/46a163d9925e7877faf8a4f73996a20d7cf9202a.patch"; + sha256 = "0gfvvbri9kyzhvq3bvdbj2l6mwvlz040dk4mrd5m9gz79f7w109c"; + }) + ]; + }); ltermbox = super.ltermbox.override( { disabled = !isLua51 || isLuaJIT; @@ -21,6 +45,20 @@ with super; lrexlib-gnu = super.lrexlib-gnu.override({ buildInputs = [ pkgs.gnulib ]; }); + luaevent = super.luaevent.override({ + buildInputs = with pkgs; [ libevent.dev libevent ]; + propagatedBuildInputs = [ luasocket ]; + extraConfig = '' + variables={ + EVENT_INCDIR="${pkgs.libevent.dev}/include"; + EVENT_LIBDIR="${pkgs.libevent}/lib"; + } + ''; + disabled= luaOlder "5.1" || luaAtLeast "5.4" || isLuaJIT; + }); + lua-iconv = super.lua-iconv.override({ + buildInputs = [ pkgs.libiconv ]; + }); luv = super.luv.overrideAttrs(oa: { propagatedBuildInputs = oa.propagatedBuildInputs ++ [ pkgs.libuv ]; }); |