mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-19 04:02:10 +00:00
luaPackages.lpeg: 1.0.1 -> 1.0.2
and move to generated
This commit is contained in:
parent
ff05703611
commit
128ca15808
|
@ -10,6 +10,7 @@ http,,,,,
|
|||
inspect,,,,,
|
||||
ldoc,,,,,
|
||||
lgi,,,,,
|
||||
lpeg,,,,,vyp
|
||||
lpeg_patterns,,,,,
|
||||
lpeglabel,,,,,
|
||||
lpty,,,,,
|
||||
|
|
|
|
@ -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";
|
||||
|
|
|
@ -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}";
|
||||
|
|
Loading…
Reference in a new issue