Add lua package for cjson

This commit is contained in:
Olav 2015-02-18 00:12:43 +00:00
parent c08716029b
commit 3904d5445d

View File

@ -242,6 +242,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 {
name = "lua-MessagePack-${version}";
version = "0.3.1";