From cc5d2810357d4882b22154aad92f1581076c6b1f Mon Sep 17 00:00:00 2001 From: Philipp Gesang Date: Thu, 5 Jul 2018 23:49:08 +0200 Subject: lua-packages: define lua53Packages Set up lua packages for the v5.3.x interpreter. Blacklist the set of lua-packages (luabitop, luaexpat, luazip, luasqlite3) whose compilation fails against 5.3.4. The rest are at least building. Signed-off-by: Philipp Gesang --- pkgs/top-level/all-packages.nix | 1 + pkgs/top-level/lua-packages.nix | 8 ++++++-- 2 files changed, 7 insertions(+), 2 deletions(-) (limited to 'pkgs') diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index f7084b0a5fd2..36ca2cf6f966 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -7308,6 +7308,7 @@ with pkgs; lua51Packages = recurseIntoAttrs (callPackage ./lua-packages.nix { lua = lua5_1; }); lua52Packages = recurseIntoAttrs (callPackage ./lua-packages.nix { lua = lua5_2; }); + lua53Packages = recurseIntoAttrs (callPackage ./lua-packages.nix { lua = lua5_3; }); luajitPackages = recurseIntoAttrs (callPackage ./lua-packages.nix { lua = luajit; }); luaPackages = lua52Packages; diff --git a/pkgs/top-level/lua-packages.nix b/pkgs/top-level/lua-packages.nix index 311bb1eb63f0..8f109c0fcb7d 100644 --- a/pkgs/top-level/lua-packages.nix +++ b/pkgs/top-level/lua-packages.nix @@ -83,6 +83,8 @@ let buildFlags = stdenv.lib.optionalString stdenv.isDarwin "macosx"; + disabled = isLua53; + postPatch = stdenv.lib.optionalString stdenv.isDarwin '' substituteInPlace Makefile --replace 10.4 10.5 ''; @@ -220,7 +222,7 @@ let EXPAT_INC="-I${expat.dev}/include"); ''; - disabled = isLuaJIT; + disabled = isLua53 || isLuaJIT; meta = with stdenv.lib; { description = "SAX XML parser based on the Expat library"; @@ -500,7 +502,7 @@ let patches = [ ../development/lua-modules/zip.patch ]; # Does not currently work under Lua 5.2 or LuaJIT. - disabled = isLua52 || isLuaJIT; + disabled = isLua52 || isLua53 || isLuaJIT; meta = with stdenv.lib; { description = "Lua library to read files stored inside zip files"; @@ -621,6 +623,8 @@ let sha256 = "05k8zs8nsdmlwja3hdhckwknf7ww5cvbp3sxhk2xd1i3ij6aa10b"; }; + disabled = isLua53; + buildInputs = [ sqlite ]; patches = [ ../development/lua-modules/luasql.patch ]; -- cgit 1.4.1 From 0b30f6940682234311fd87859009f5e030bf03aa Mon Sep 17 00:00:00 2001 From: Philipp Gesang Date: Fri, 6 Jul 2018 00:06:48 +0200 Subject: lua-packages: update lpeg 0.12 -> 1.0.1 Signed-off-by: Philipp Gesang --- pkgs/top-level/lua-packages.nix | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'pkgs') diff --git a/pkgs/top-level/lua-packages.nix b/pkgs/top-level/lua-packages.nix index 8f109c0fcb7d..9ef63bdd512e 100644 --- a/pkgs/top-level/lua-packages.nix +++ b/pkgs/top-level/lua-packages.nix @@ -15,6 +15,7 @@ let isLua51 = lua.luaversion == "5.1"; isLua52 = lua.luaversion == "5.2"; + isLua53 = lua.luaversion == "5.3"; isLuaJIT = (builtins.parseDrvName lua.name).name == "luajit"; platformString = @@ -640,11 +641,11 @@ let lpeg = buildLuaPackage rec { name = "lpeg-${version}"; - version = "0.12"; + version = "1.0.1"; src = fetchurl { url = "http://www.inf.puc-rio.br/~roberto/lpeg/${name}.tar.gz"; - sha256 = "0xlbfw1w7l65a5qhnx5sfw327hkq1zcj8xmg4glfw6fj9ha4b9gg"; + sha256 = "62d9f7a9ea3c1f215c77e0cadd8534c6ad9af0fb711c3f89188a8891c72f026b"; }; preBuild = '' -- cgit 1.4.1 From 2c21a970e9e31d553405e59915c4519e5a9710c3 Mon Sep 17 00:00:00 2001 From: Philipp Gesang Date: Wed, 11 Jul 2018 07:30:28 +0200 Subject: lua5_3: update interpreter version 5.3.4 -> 5.3.5 Update to the most recent version of the 5.3 series that was released yesterday. Signed-off-by: Philipp Gesang --- pkgs/development/interpreters/lua-5/5.3.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'pkgs') diff --git a/pkgs/development/interpreters/lua-5/5.3.nix b/pkgs/development/interpreters/lua-5/5.3.nix index 5a4893db0637..85a9f8093bf4 100644 --- a/pkgs/development/interpreters/lua-5/5.3.nix +++ b/pkgs/development/interpreters/lua-5/5.3.nix @@ -5,11 +5,11 @@ stdenv.mkDerivation rec { name = "lua-${version}"; luaversion = "5.3"; - version = "${luaversion}.4"; + version = "${luaversion}.5"; src = fetchurl { url = "https://www.lua.org/ftp/${name}.tar.gz"; - sha256 = "0320a8dg3aci4hxla380dx1ifkw8gj4gbw5c4dz41g1kh98sm0gn"; + sha256 = "0c2eed3f960446e1a3e4b9a1ca2f3ff893b6ce41942cf54d5dd59ab4b3b058ac"; }; buildInputs = [ readline ]; -- cgit 1.4.1