mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-19 04:02:10 +00:00
luaPackages.cjson: move to generated
This commit is contained in:
parent
97b23ec91d
commit
62d4e044e7
|
@ -16,6 +16,7 @@ lpty,,,,
|
||||||
lrexlib-gnu,,,,
|
lrexlib-gnu,,,,
|
||||||
lrexlib-posix,,,,
|
lrexlib-posix,,,,
|
||||||
ltermbox,,,,
|
ltermbox,,,,
|
||||||
|
cjson,lua-cjson,,,
|
||||||
lua-cmsgpack,,,,
|
lua-cmsgpack,,,,
|
||||||
lua_cliargs,,,,
|
lua_cliargs,,,,
|
||||||
lua-iconv,,,,
|
lua-iconv,,,,
|
||||||
|
|
|
|
@ -352,6 +352,25 @@ ltermbox = buildLuarocksPackage {
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
cjson = buildLuarocksPackage {
|
||||||
|
pname = "lua-cjson";
|
||||||
|
version = "2.1.0.6-1";
|
||||||
|
|
||||||
|
src = fetchurl {
|
||||||
|
url = https://luarocks.org/lua-cjson-2.1.0.6-1.src.rock;
|
||||||
|
sha256 = "0dqqkn0aygc780kiq2lbydb255r8is7raf7md0gxdjcagp8afps5";
|
||||||
|
};
|
||||||
|
disabled = (luaOlder "5.1");
|
||||||
|
propagatedBuildInputs = [ lua ];
|
||||||
|
|
||||||
|
meta = {
|
||||||
|
homepage = "http://www.kyne.com.au/~mark/software/lua-cjson.php";
|
||||||
|
description = "A fast JSON encoding/parsing module";
|
||||||
|
license = {
|
||||||
|
fullName = "MIT";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
lua-cmsgpack = buildLuarocksPackage {
|
lua-cmsgpack = buildLuarocksPackage {
|
||||||
pname = "lua-cmsgpack";
|
pname = "lua-cmsgpack";
|
||||||
version = "0.4.0-0";
|
version = "0.4.0-0";
|
||||||
|
|
|
@ -684,37 +684,6 @@ with self; {
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
cjson = buildLuaPackage rec {
|
|
||||||
name = "cjson-${version}";
|
|
||||||
version = "2.1.0";
|
|
||||||
|
|
||||||
src = fetchurl {
|
|
||||||
url = "http://www.kyne.com.au/~mark/software/download/lua-${name}.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";
|
|
||||||
|
|
||||||
disabled = isLuaJIT;
|
|
||||||
|
|
||||||
meta = with stdenv.lib; {
|
|
||||||
description = "Lua C extension module for JSON support";
|
|
||||||
homepage = "https://www.kyne.com.au/~mark/software/lua-cjson.php";
|
|
||||||
license = licenses.mit;
|
|
||||||
maintainers = with maintainers; [ vyp ];
|
|
||||||
};
|
|
||||||
};
|
|
||||||
|
|
||||||
mpack = buildLuaPackage rec {
|
mpack = buildLuaPackage rec {
|
||||||
name = "mpack-${version}";
|
name = "mpack-${version}";
|
||||||
version = "1.0.7";
|
version = "1.0.7";
|
||||||
|
|
Loading…
Reference in a new issue