luaPackages.lpeg_patterns: move to generated

This commit is contained in:
Matthieu Coudron 2019-02-06 00:27:19 +09:00
parent adb837eea7
commit f0269de17f
3 changed files with 21 additions and 26 deletions

View File

@ -2,6 +2,7 @@ ansicolors,
argparse, argparse,
dkjson dkjson
inspect inspect
lpeg_patterns
lrexlib-gnu, lrexlib-gnu,
lrexlib-posix, lrexlib-posix,
ltermbox, ltermbox,

1 ansicolors,
2 argparse,
3 dkjson
4 inspect
5 lpeg_patterns
6 lrexlib-gnu,
7 lrexlib-posix,
8 ltermbox,

View File

@ -90,6 +90,26 @@ inspect = buildLuarocksPackage {
}; };
}; };
}; };
lpeg_patterns = buildLuarocksPackage {
pname = "lpeg_patterns";
version = "0.5-0";
src = fetchurl {
url = https://luarocks.org/lpeg_patterns-0.5-0.src.rock;
sha256 = "0mlw4nayrsdxrh98i26avz5i4170a9brciybw88kks496ra36v8f";
};
propagatedBuildInputs = [lua lpeg ];
buildType="builtin";
meta = {
homepage = "https://github.com/daurnimator/lpeg_patterns/archive/v0.5.zip";
description="a collection of LPEG patterns";
license = {
fullName = "MIT";
};
};
};
lrexlib-gnu = buildLuarocksPackage { lrexlib-gnu = buildLuarocksPackage {
pname = "lrexlib-gnu"; pname = "lrexlib-gnu";
version = "2.9.0-1"; version = "2.9.0-1";

View File

@ -915,32 +915,6 @@ with self; {
}; };
}; };
lpeg_patterns = buildLuaPackage rec {
version = "0.5";
name = "lpeg_patterns-${version}";
src = fetchFromGitHub {
owner = "daurnimator";
repo = "lpeg_patterns";
rev = "v${version}";
sha256 = "1s3c179a64r45ffkawv9dnxw4mzwkzj00nr9z2gs5haajgpjivw6";
};
buildPhase = ":";
installPhase = ''
mkdir -p "$out/lib/lua/${lua.luaversion}"
mv lpeg_patterns "$out/lib/lua/${lua.luaversion}/"
'';
meta = with stdenv.lib; {
description = "A collection of LPEG patterns";
homepage = "https://github.com/daurnimator/lpeg_patterns";
license = licenses.mit;
maintainers = with maintainers; [ vcunat ];
inherit (lpeg.meta) platforms;
};
};
cjson = buildLuaPackage rec { cjson = buildLuaPackage rec {
name = "cjson-${version}"; name = "cjson-${version}";
version = "2.1.0"; version = "2.1.0";