mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-16 14:54:29 +01:00
Add lua package for cjson
This commit is contained in:
parent
c08716029b
commit
3904d5445d
1 changed files with 21 additions and 0 deletions
|
@ -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";
|
||||
|
|
Loading…
Reference in a new issue