luaPackages.lpeg: 1.0.1 -> 1.0.2

and move to generated
This commit is contained in:
Matthieu Coudron 2019-06-05 13:19:05 +09:00 committed by Matthieu Coudron
parent ff05703611
commit 128ca15808
3 changed files with 20 additions and 29 deletions

View File

@ -10,6 +10,7 @@ http,,,,,
inspect,,,,,
ldoc,,,,,
lgi,,,,,
lpeg,,,,,vyp
lpeg_patterns,,,,,
lpeglabel,,,,,
lpty,,,,,

1 # nix name luarocks name server version luaversion maintainers
10 inspect
11 ldoc
12 lgi
13 lpeg vyp
14 lpeg_patterns
15 lpeglabel
16 lpty

View File

@ -239,6 +239,25 @@ lgi = buildLuarocksPackage {
};
};
};
lpeg = buildLuarocksPackage {
pname = "lpeg";
version = "1.0.2-1";
src = fetchurl {
url = https://luarocks.org/lpeg-1.0.2-1.src.rock;
sha256 = "1g5zmfh0x7drc6mg2n0vvlga2hdc08cyp3hnb22mh1kzi63xdl70";
};
disabled = (luaOlder "5.1");
propagatedBuildInputs = [ lua ];
meta = {
homepage = "http://www.inf.puc-rio.br/~roberto/lpeg.html";
description = "Parsing Expression Grammars For Lua";
license = {
fullName = "MIT/X11";
};
};
};
lpeg_patterns = buildLuarocksPackage {
pname = "lpeg_patterns";
version = "0.5-0";

View File

@ -556,35 +556,6 @@ with self; {
};
};
lpeg = buildLuaPackage rec {
name = "lpeg-${version}";
version = "1.0.1";
src = fetchurl {
url = "http://www.inf.puc-rio.br/~roberto/lpeg/${name}.tar.gz";
sha256 = "62d9f7a9ea3c1f215c77e0cadd8534c6ad9af0fb711c3f89188a8891c72f026b";
};
preBuild = ''
makeFlagsArray=(CC=$CC);
'';
buildFlags = platformString;
installPhase = ''
mkdir -p $out/lib/lua/${lua.luaversion}
install -p lpeg.so $out/lib/lua/${lua.luaversion}
install -p re.lua $out/lib/lua/${lua.luaversion}
'';
meta = with stdenv.lib; {
description = "Parsing Expression Grammars For Lua";
homepage = "http://www.inf.puc-rio.br/~roberto/lpeg/";
license = licenses.mit;
maintainers = with maintainers; [ vyp ];
platforms = platforms.all;
};
};
vicious = toLuaModule(stdenv.mkDerivation rec {
name = "vicious-${version}";