diff --git a/maintainers/scripts/luarocks-packages.csv b/maintainers/scripts/luarocks-packages.csv index e6817a060560..5dfd43757249 100644 --- a/maintainers/scripts/luarocks-packages.csv +++ b/maintainers/scripts/luarocks-packages.csv @@ -2,6 +2,7 @@ ansicolors, argparse, dkjson inspect +lpeg_patterns lrexlib-gnu, lrexlib-posix, ltermbox, diff --git a/pkgs/development/lua-modules/generated-packages.nix b/pkgs/development/lua-modules/generated-packages.nix index dc15a7a9ad67..d1d98aefbcc3 100644 --- a/pkgs/development/lua-modules/generated-packages.nix +++ b/pkgs/development/lua-modules/generated-packages.nix @@ -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 { pname = "lrexlib-gnu"; version = "2.9.0-1"; diff --git a/pkgs/top-level/lua-packages.nix b/pkgs/top-level/lua-packages.nix index de68c139dc28..ea029000bb1d 100644 --- a/pkgs/top-level/lua-packages.nix +++ b/pkgs/top-level/lua-packages.nix @@ -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 { name = "cjson-${version}"; version = "2.1.0";