Merge pull request #6412 from olavks/lua-cjson
Add lua package for json module written in C
This commit is contained in:
commit
92bbf0f76c
|
@ -295,6 +295,27 @@ let
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
cjson = buildLuaPackage rec {
|
||||||
|
name = "cjson-${version}";
|
||||||
|
version = "2.1.0";
|
||||||
|
src = fetchurl {
|
||||||
|
url = "http://www.kyne.com.au/~mark/software/download/lua-cjson-2.1.0.tar.gz";
|
||||||
|
sha256 = "0y67yqlsivbhshg8ma535llz90r4zag9xqza5jx0q7lkap6nkg2i";
|
||||||
|
};
|
||||||
|
preBuild = ''
|
||||||
|
sed -i "s|/usr/local|$out|" Makefile
|
||||||
|
'';
|
||||||
|
makeFlags = [ "LUA_VERSION=${lua.luaversion}" ];
|
||||||
|
postInstall = ''
|
||||||
|
rm -rf $out/share/lua/${lua.luaversion}/cjson/tests
|
||||||
|
'';
|
||||||
|
installTargets = "install install-extra";
|
||||||
|
meta = {
|
||||||
|
description = "Lua C extension module for JSON support";
|
||||||
|
license = stdenv.lib.licenses.mit;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
luaMessagePack = buildLuaPackage rec {
|
luaMessagePack = buildLuaPackage rec {
|
||||||
name = "lua-MessagePack-${version}";
|
name = "lua-MessagePack-${version}";
|
||||||
version = "0.3.1";
|
version = "0.3.1";
|
||||||
|
|
Loading…
Reference in New Issue