Browse Source

lua: add rapidjson, lua-toml and lua-messagepack to generated packages

nim-0.20.0
Luka Blaskovic 3 years ago
parent
commit
ca80cf922a
  1. 3
      maintainers/scripts/luarocks-packages.csv
  2. 60
      pkgs/development/lua-modules/generated-packages.nix
  3. 7
      pkgs/development/lua-modules/overrides.nix

3
maintainers/scripts/luarocks-packages.csv

@ -14,13 +14,16 @@ ltermbox,
lua-cmsgpack,
lua_cliargs,
lua-iconv,
lua-messagepack,
lua-term,
lua-toml,
luabitop,
luaevent,
luacheck
luaffi,,http://luarocks.org/dev,
luuid,
penlight,
rapidjson,
say,
std__debug,std._debug,
std_normalize,std.normalize,

Can't render this file because it has a wrong number of fields in line 2.

60
pkgs/development/lua-modules/generated-packages.nix

@ -320,6 +320,26 @@ lua-iconv = buildLuarocksPackage {
};
};
};
lua-messagepack = buildLuarocksPackage {
pname = "lua-messagepack";
version = "0.5.1-2";
src = fetchurl {
url = https://luarocks.org/lua-messagepack-0.5.1-2.src.rock;
sha256 = "0bsdzdd24p9z3j4z1avw7qaqx87baa1pm58v275pw4h6n72z492g";
};
disabled = ( luaOlder "5.1");
propagatedBuildInputs = [ lua ];
buildType = "builtin";
meta = {
homepage = "http://fperrad.frama.io/lua-MessagePack/";
description="a pure Lua implementation of the MessagePack serialization format";
license = {
fullName = "MIT/X11";
};
};
};
lua-term = buildLuarocksPackage {
pname = "lua-term";
version = "0.7-1";
@ -346,6 +366,26 @@ lua-term = buildLuarocksPackage {
};
};
};
lua-toml = buildLuarocksPackage {
pname = "lua-toml";
version = "2.0-1";
src = fetchurl {
url = https://luarocks.org/lua-toml-2.0-1.src.rock;
sha256 = "0lyqlnydqbplq82brw9ipqy9gijin6hj1wc46plz994pg4i2c74m";
};
disabled = ( luaOlder "5.1");
propagatedBuildInputs = [ lua ];
buildType = "builtin";
meta = {
homepage = "https://github.com/jonstoler/lua-toml";
description="toml decoder/encoder for Lua";
license = {
fullName = "MIT";
};
};
};
luabitop = buildLuarocksPackage {
pname = "luabitop";
version = "1.0.2-3";
@ -482,6 +522,26 @@ penlight = buildLuarocksPackage {
};
};
};
rapidjson = buildLuarocksPackage {
pname = "rapidjson";
version = "0.5.1-1";
src = fetchurl {
url = https://luarocks.org/rapidjson-0.5.1-1.src.rock;
sha256 = "0hnqsixnbz95cvm9q5dn0lr0qjvhqw4llw6l1sjswwk0am4yybay";
};
disabled = ( luaOlder "5.1");
propagatedBuildInputs = [ lua ];
buildType = "cmake";
meta = {
homepage = "https://github.com/xpol/lua-rapidjson";
description="Json module based on the very fast RapidJSON.";
license = {
fullName = "MIT";
};
};
};
say = buildLuarocksPackage {
pname = "say";
version = "1.3-1";

7
pkgs/development/lua-modules/overrides.nix

@ -68,4 +68,11 @@ with super;
platforms = pkgs.lib.platforms.linux;
};
});
rapidjson = super.rapidjson.overrideAttrs(oa: {
preBuild = ''
sed -i '/set(CMAKE_CXX_FLAGS/d' CMakeLists.txt
sed -i '/set(CMAKE_C_FLAGS/d' CMakeLists.txt
'';
});
}

Loading…
Cancel
Save