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

This commit is contained in:
Luka Blaskovic 2019-04-30 08:35:29 +00:00
parent 356ba795cb
commit ca80cf922a
3 changed files with 70 additions and 0 deletions

View file

@ -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,

1 # nix name, luarocks name, server, version/additionnal args
14 lua-cmsgpack,
15 lua_cliargs,
16 lua-iconv,
17 lua-messagepack,
18 lua-term,
19 lua-toml,
20 luabitop,
21 luaevent,
22 luacheck
23 luaffi,,http://luarocks.org/dev,
24 luuid,
25 penlight,
26 rapidjson,
27 say,
28 std__debug,std._debug,
29 std_normalize,std.normalize,

View file

@ -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";

View file

@ -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
'';
});
}