From a032a3ad90f7794977c10a95141e424b8211ecd9 Mon Sep 17 00:00:00 2001 From: Matthieu Coudron Date: Fri, 24 Jan 2020 20:58:58 +0100 Subject: [PATCH] luaPackages.luarepl: init at 0.9-1 --- maintainers/scripts/luarocks-packages.csv | 1 + .../lua-modules/generated-packages.nix | 27 ++++++++++++++++--- 2 files changed, 25 insertions(+), 3 deletions(-) diff --git a/maintainers/scripts/luarocks-packages.csv b/maintainers/scripts/luarocks-packages.csv index 73de7b518dbb..ceb47f57db56 100644 --- a/maintainers/scripts/luarocks-packages.csv +++ b/maintainers/scripts/luarocks-packages.csv @@ -52,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 diff --git a/pkgs/development/lua-modules/generated-packages.nix b/pkgs/development/lua-modules/generated-packages.nix index 3e01b2f97577..eaa0f41aadbe 100644 --- a/pkgs/development/lua-modules/generated-packages.nix +++ b/pkgs/development/lua-modules/generated-packages.nix @@ -1083,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 {