luaPackages.llscheck: init at 0.5.0-1

This commit is contained in:
Marc Jakobi 2024-07-28 15:10:37 +02:00
parent 202ad9365a
commit 61e2966413
3 changed files with 32 additions and 0 deletions

View File

@ -35,6 +35,7 @@ ldoc,,,,,,
lgi,,,,,, lgi,,,,,,
linenoise,https://raw.githubusercontent.com/hoelzro/lua-linenoise/master/linenoise-0.9-1.rockspec,,,,, linenoise,https://raw.githubusercontent.com/hoelzro/lua-linenoise/master/linenoise-0.9-1.rockspec,,,,,
ljsyscall,,,,,5.1,lblasc ljsyscall,,,,,5.1,lblasc
llscheck,,,,,,mrcjkb
lmathx,,,,,5.3,alexshpilkin lmathx,,,,,5.3,alexshpilkin
lmpfrlib,,,,,5.3,alexshpilkin lmpfrlib,,,,,5.3,alexshpilkin
loadkit,,,,,,alerque loadkit,,,,,,alerque

1 name rockspec ref server version luaversion maintainers
35 lgi
36 linenoise https://raw.githubusercontent.com/hoelzro/lua-linenoise/master/linenoise-0.9-1.rockspec
37 ljsyscall 5.1 lblasc
38 llscheck mrcjkb
39 lmathx 5.3 alexshpilkin
40 lmpfrlib 5.3 alexshpilkin
41 loadkit alerque

View File

@ -848,6 +848,32 @@ buildLuarocksPackage {
}; };
}) {}; }) {};
llscheck = callPackage({ ansicolors, argparse, buildLuarocksPackage, fetchFromGitHub, fetchurl, lua-cjson, luaOlder, luafilesystem, penlight }:
buildLuarocksPackage {
pname = "llscheck";
version = "0.5.0-1";
knownRockspec = (fetchurl {
url = "mirror://luarocks/llscheck-0.5.0-1.rockspec";
sha256 = "1bcyg1gphlgwmra8l1503yaw6wfihs1fksdvvp1y38zryhkvj0dy";
}).outPath;
src = fetchFromGitHub {
owner = "jeffzi";
repo = "llscheck";
rev = "v0.5.0";
hash = "sha256-cG/FNzOwvLvrAEut4OvXI8WWSVzNEl4r3OgiSnp3S5c=";
};
disabled = luaOlder "5.1";
propagatedBuildInputs = [ ansicolors argparse lua-cjson luafilesystem penlight ];
meta = {
homepage = "https://github.com/jeffzi/llscheck";
description = "Human-friendly Lua code analysis powered by Lua Language Server";
maintainers = with lib.maintainers; [ mrcjkb ];
license.fullName = "MIT";
};
}) {};
lmathx = callPackage({ buildLuarocksPackage, fetchurl }: lmathx = callPackage({ buildLuarocksPackage, fetchurl }:
buildLuarocksPackage { buildLuarocksPackage {
pname = "lmathx"; pname = "lmathx";

View File

@ -35,6 +35,7 @@
, libxcrypt , libxcrypt
, libyaml , libyaml
, luajitPackages , luajitPackages
, lua-language-server
, mariadb , mariadb
, magic-enum , magic-enum
, mpfr , mpfr
@ -246,6 +247,10 @@ in
meta.broken = luaOlder "5.1" || luaAtLeast "5.4"; meta.broken = luaOlder "5.1" || luaAtLeast "5.4";
}); });
llscheck = prev.llscheck.overrideAttrs (oa: {
propagatedBuildInputs = oa.propagatedBuildInputs ++ [ lua-language-server ];
});
lmathx = prev.luaLib.overrideLuarocks prev.lmathx (drv: lmathx = prev.luaLib.overrideLuarocks prev.lmathx (drv:
if luaAtLeast "5.1" && luaOlder "5.2" then { if luaAtLeast "5.1" && luaOlder "5.2" then {
version = "20120430.51-1"; version = "20120430.51-1";