1 # do not add pkgs, it messes up splicing
24 , gobject-introspection
66 inherit (prev) luaOlder luaAtLeast lua isLuaJIT isLua51;
69 argparse = prev.argparse.overrideAttrs(oa: {
72 checkInputs = [ final.busted ];
76 export LUA_PATH="src/?.lua;$LUA_PATH"
81 ##########################################3
82 #### manual fixes for generated packages
83 ##########################################3
84 bit32 = prev.bit32.overrideAttrs (oa: {
85 # Small patch in order to no longer redefine a Lua 5.2 function that Luajit
86 # 2.1 also provides, see https://github.com/LuaJIT/LuaJIT/issues/325 for
91 meta.broken = luaOlder "5.1" || luaAtLeast "5.4";
94 busted = prev.busted.overrideAttrs (oa: {
95 nativeBuildInputs = oa.nativeBuildInputs ++ [
99 substituteInPlace ''${rockspecFilename} \
100 --replace-fail "'lua_cliargs = 3.0'," "'lua_cliargs >= 3.0-1',"
103 installShellCompletion --cmd busted \
104 --zsh completions/zsh/_busted \
105 --bash completions/bash/busted.bash
109 cqueues = prev.cqueues.overrideAttrs (oa: rec {
110 # Parse out a version number without the Lua version inserted
112 version' = prev.cqueues.version;
113 rel = lib.splitVersion version';
115 rev = lib.last (lib.splitString "-" (lib.last rel));
119 meta.broken = luaOlder "5.1" || luaAtLeast "5.4";
121 nativeBuildInputs = oa.nativeBuildInputs ++ [
126 { name = "CRYPTO"; dep = openssl; }
127 { name = "OPENSSL"; dep = openssl; }
130 # Upstream rockspec is pointlessly broken into separate rockspecs, per Lua
131 # version, which doesn't work well for us, so modify it
132 postConfigure = let inherit (prev.cqueues) pname; in
134 # 'all' target auto-detects correct Lua version, which is fine for us as
135 # we only have the right one available :)
136 sed -Ei ''${rockspecFilename} \
137 -e 's|lua == 5.[[:digit:]]|lua >= 5.1, <= 5.3|' \
138 -e 's|build_target = "[^"]+"|build_target = "all"|' \
139 -e 's|version = "[^"]+"|version = "${version}"|'
140 specDir=$(dirname ''${rockspecFilename})
141 cp ''${rockspecFilename} "$specDir/${pname}-${version}.rockspec"
142 rockspecFilename="$specDir/${pname}-${version}.rockspec"
146 # Until https://github.com/swarn/fzy-lua/pull/8 is merged,
147 # we have to invoke busted manually
148 fzy = prev.fzy.overrideAttrs(oa: {
150 nativeCheckInputs = [ final.busted ];
156 http = prev.http.overrideAttrs (oa: {
159 name = "invalid-state-progression.patch";
160 url = "https://github.com/daurnimator/lua-http/commit/cb7b59474a.diff";
161 sha256 = "1vmx039n3nqfx50faqhs3wgiw28ws416rhw6vh6srmh9i826dac7";
164 /* TODO: separate docs derivation? (pandoc is heavy)
165 nativeBuildInputs = [ pandoc ];
166 makeFlags = [ "-C doc" "lua-http.html" "lua-http.3" ];
170 image-nvim = prev.image-nvim.overrideAttrs (oa: {
171 propagatedBuildInputs = [
173 luajitPackages.magick
177 ldbus = prev.ldbus.overrideAttrs (oa: {
178 luarocksConfig = oa.luarocksConfig // {
180 DBUS_DIR = "${dbus.lib}";
181 DBUS_ARCH_INCDIR = "${dbus.lib}/lib/dbus-1.0/include";
182 DBUS_INCDIR = "${dbus.dev}/include/dbus-1.0";
190 ljsyscall = prev.ljsyscall.overrideAttrs (oa: rec {
191 version = "unstable-20180515";
192 # package hasn't seen any release for a long time
193 src = fetchFromGitHub {
194 owner = "justincormack";
196 rev = "e587f8c55aad3955dddab3a4fa6c1968037b5c6e";
197 sha256 = "06v52agqyziwnbp2my3r7liv245ddmb217zmyqakh0ldjdsr8lz4";
199 knownRockspec = "rockspec/ljsyscall-scm-1.rockspec";
200 # actually library works fine with lua 5.2
202 sed -i 's/lua == 5.1/lua >= 5.1, < 5.3/' ${knownRockspec}
204 meta.broken = luaOlder "5.1" || luaAtLeast "5.3";
206 propagatedBuildInputs = oa.propagatedBuildInputs ++ lib.optional (!isLuaJIT) final.luaffi;
209 lgi = prev.lgi.overrideAttrs (oa: {
210 nativeBuildInputs = oa.nativeBuildInputs ++ [
215 gobject-introspection
219 name = "lgi-find-cairo-through-typelib.patch";
220 url = "https://github.com/psychon/lgi/commit/46a163d9925e7877faf8a4f73996a20d7cf9202a.patch";
221 sha256 = "0gfvvbri9kyzhvq3bvdbj2l6mwvlz040dk4mrd5m9gz79f7w109c";
225 # https://github.com/lgi-devs/lgi/pull/300
227 substituteInPlace lgi/Makefile tests/Makefile \
228 --replace 'PKG_CONFIG =' 'PKG_CONFIG ?='
231 # there is only a rockspec.in in the repo, the actual rockspec must be generated
236 # Lua 5.4 support is experimental at the moment, see
237 # https://github.com/lgi-devs/lgi/pull/249
238 meta.broken = luaOlder "5.1" || luaAtLeast "5.4";
241 llscheck = prev.llscheck.overrideAttrs (oa: {
242 propagatedBuildInputs = oa.propagatedBuildInputs ++ [ lua-language-server ];
245 lmathx = prev.luaLib.overrideLuarocks prev.lmathx (drv:
246 if luaAtLeast "5.1" && luaOlder "5.2" then {
247 version = "20120430.51-1";
248 knownRockspec = (fetchurl {
249 url = "mirror://luarocks/lmathx-20120430.51-1.rockspec";
250 sha256 = "148vbv2g3z5si2db7rqg5bdily7m4sjyh9w6r3jnx3csvfaxyhp0";
253 url = "https://web.tecgraf.puc-rio.br/~lhf/ftp/lua/5.1/lmathx.tar.gz";
254 sha256 = "0sa553d0zlxhvpsmr4r7d841f16yq4wr3fg7i07ibxkz6yzxax51";
257 if luaAtLeast "5.2" && luaOlder "5.3" then {
258 version = "20120430.52-1";
259 knownRockspec = (fetchurl {
260 url = "mirror://luarocks/lmathx-20120430.52-1.rockspec";
261 sha256 = "14rd625sipakm72wg6xqsbbglaxyjba9nsajsfyvhg0sz8qjgdya";
264 url = "http://www.tecgraf.puc-rio.br/~lhf/ftp/lua/5.2/lmathx.tar.gz";
265 sha256 = "19dwa4z266l2njgi6fbq9rak4rmx2fsx1s0p9sl166ar3mnrdwz5";
269 disabled = luaOlder "5.1" || luaAtLeast "5.5";
270 # works fine with 5.4 as well
272 substituteInPlace ''${rockspecFilename} \
273 --replace 'lua ~> 5.3' 'lua >= 5.3, < 5.5'
277 lmpfrlib = prev.lmpfrlib.overrideAttrs (oa: {
279 { name = "GMP"; dep = gmp; }
280 { name = "MPFR"; dep = mpfr; }
283 cp $src $(stripHash $src)
287 lrexlib-gnu = prev.lrexlib-gnu.overrideAttrs (oa: {
288 buildInputs = oa.buildInputs ++ [
293 lrexlib-pcre = prev.lrexlib-pcre.overrideAttrs (oa: {
295 { name = "PCRE"; dep = pcre; }
299 lrexlib-posix = prev.lrexlib-posix.overrideAttrs (oa: {
300 buildInputs = oa.buildInputs ++ [
305 lua-curl = prev.lua-curl.overrideAttrs (oa: {
306 buildInputs = oa.buildInputs ++ [
311 lua-iconv = prev.lua-iconv.overrideAttrs (oa: {
312 buildInputs = oa.buildInputs ++ [
317 lua-lsp = prev.lua-lsp.overrideAttrs (oa: {
318 # until Alloyed/lua-lsp#28
320 substituteInPlace ''${rockspecFilename} \
321 --replace '"dkjson ~> 2.5",' '"dkjson >= 2.5",'
325 lua-resty-jwt = prev.lua-resty-jwt.overrideAttrs(oa: {
326 src = fetchFromGitHub {
328 repo = "lua-resty-jwt";
330 hash = "sha256-5lnr0ka6ijfujiRjqwCPb6jzItXx45FIN8CvhR/KiB8=";
331 fetchSubmodules = true;
335 lua-zlib = prev.lua-zlib.overrideAttrs (oa: {
336 buildInputs = oa.buildInputs ++ [
339 meta = oa.meta // { broken = luaOlder "5.1" || luaAtLeast "5.4"; };
342 luadbi-mysql = prev.luadbi-mysql.overrideAttrs (oa: {
344 luarocksConfig = lib.recursiveUpdate oa.luarocksConfig {
346 # Can't just be /include and /lib, unfortunately needs the trailing 'mysql'
347 MYSQL_INCDIR = "${libmysqlclient.dev}/include/mysql";
348 MYSQL_LIBDIR = "${libmysqlclient}/lib/mysql";
351 buildInputs = oa.buildInputs ++ [
357 luadbi-postgresql = prev.luadbi-postgresql.overrideAttrs (oa: {
358 buildInputs = oa.buildInputs ++ [
359 (lib.getDev postgresql)
363 luadbi-sqlite3 = prev.luadbi-sqlite3.overrideAttrs (oa: {
365 { name = "SQLITE"; dep = sqlite; }
369 luaevent = prev.luaevent.overrideAttrs (oa: {
370 propagatedBuildInputs = oa.propagatedBuildInputs ++ [
374 { name = "EVENT"; dep = libevent; }
376 meta.broken = luaOlder "5.1" || luaAtLeast "5.4";
379 luaexpat = prev.luaexpat.overrideAttrs (_: {
381 { name = "EXPAT"; dep = expat; }
385 # TODO Somehow automatically amend buildInputs for things that need luaffi
386 # but are in luajitPackages?
387 luaffi = prev.luaffi.overrideAttrs (oa: {
388 # The packaged .src.rock version is pretty old, and doesn't work with Lua 5.3
389 src = fetchFromGitHub {
392 rev = "532c757e51c86f546a85730b71c9fef15ffa633d";
393 sha256 = "1nwx6sh56zfq99rcs7sph0296jf6a9z72mxknn0ysw9fd7m1r8ig";
395 knownRockspec = with prev.luaffi; "${pname}-${version}.rockspec";
396 meta.broken = luaOlder "5.1" || luaAtLeast "5.4" || isLuaJIT;
399 lualdap = prev.lualdap.overrideAttrs (_: {
401 { name = "LDAP"; dep = openldap; }
405 luaossl = prev.luaossl.overrideAttrs (_: {
407 { name = "CRYPTO"; dep = openssl; }
408 { name = "OPENSSL"; dep = openssl; }
412 luaposix = prev.luaposix.overrideAttrs (_: {
414 { name = "CRYPT"; dep = libxcrypt; }
418 luaprompt = prev.luaprompt.overrideAttrs (_: {
420 { name = "READLINE"; dep = readline; }
421 { name = "HISTORY"; dep = readline; }
425 # As a nix user, use this derivation instead of "luarocks_bootstrap"
426 luarocks = prev.luarocks.overrideAttrs (oa: {
428 nativeBuildInputs = oa.nativeBuildInputs ++ [ installShellFiles lua unzip ];
429 # cmake is just to compile packages with "cmake" buildType, not luarocks itself
430 dontUseCmakeConfigure = true;
432 propagatedBuildInputs = [ zip unzip cmake ];
434 postInstall = lib.optionalString (stdenv.buildPlatform.canExecute stdenv.hostPlatform) ''
435 installShellCompletion --cmd luarocks \
436 --bash <($out/bin/luarocks completion bash) \
437 --fish <($out/bin/luarocks completion fish) \
438 --zsh <($out/bin/luarocks completion zsh)
440 installShellCompletion --cmd luarocks-admin \
441 --bash <($out/bin/luarocks-admin completion bash) \
442 --fish <($out/bin/luarocks-admin completion fish) \
443 --zsh <($out/bin/luarocks-admin completion zsh)
447 mainProgram = "luarocks";
452 luasec = prev.luasec.overrideAttrs (oa: {
454 { name = "OPENSSL"; dep = openssl; }
458 luasql-sqlite3 = prev.luasql-sqlite3.overrideAttrs (oa: {
460 { name = "SQLITE"; dep = sqlite; }
464 luasystem = prev.luasystem.overrideAttrs (oa: lib.optionalAttrs stdenv.hostPlatform.isLinux {
465 buildInputs = [ glibc.out ];
468 luazip = prev.luazip.overrideAttrs (oa: {
469 buildInputs = oa.buildInputs ++ [
474 # lua-resty-session = prev.lua-resty-session.overrideAttrs (oa: {
475 # # lua_pack and lua-ffi-zlib are unpackaged, causing this package to not evaluate
476 # meta.broken = true;
479 lua-yajl = prev.lua-yajl.overrideAttrs (oa: {
480 buildInputs = oa.buildInputs ++ [
485 luaunbound = prev.luaunbound.overrideAttrs (oa: {
487 { name = "libunbound"; dep = unbound; }
491 lua-subprocess = prev.lua-subprocess.overrideAttrs (oa: {
492 meta.broken = luaOlder "5.1" || luaAtLeast "5.4";
495 lua-rtoml = prev.lua-rtoml.overrideAttrs (oa: {
497 cargoDeps = rustPlatform.fetchCargoTarball {
499 hash = "sha256-EcP4eYsuOVeEol+kMqzsVHd8F2KoBdLzf6K0KsYToUY=";
502 propagatedBuildInputs = oa.propagatedBuildInputs ++ [ cargo rustPlatform.cargoSetupHook ];
504 # ld: symbol(s) not found for architecture arm64
505 # clang-16: error: linker command failed with exit code 1 (use -v to see invocation)
506 meta.broken = stdenv.hostPlatform.isDarwin;
509 lush-nvim = prev.lush-nvim.overrideAttrs (drv: {
513 luuid = prev.luuid.overrideAttrs (oa: {
515 { name = "LIBUUID"; dep = libuuid; }
517 # Trivial patch to make it work in both 5.1 and 5.2. Basically just the
518 # tiny diff between the two upstream versions placed behind an #if.
520 # 5.1: http://webserver2.tecgraf.puc-rio.br/~lhf/ftp/lua/5.1/luuid.tar.gz
521 # 5.2: http://webserver2.tecgraf.puc-rio.br/~lhf/ftp/lua/5.2/luuid.tar.gz
522 patchFlags = [ "-p2" ];
527 sed -Ei ''${rockspecFilename} -e 's|lua >= 5.2|lua >= 5.1,|'
530 broken = luaOlder "5.1" || (luaAtLeast "5.4");
531 platforms = lib.platforms.linux;
535 lz-n = prev.lz-n.overrideAttrs(oa: {
536 doCheck = lua.luaversion == "5.1";
537 nativeCheckInputs = [ final.nlua final.busted ];
540 export HOME=$(mktemp -d)
546 lze = prev.lze.overrideAttrs(oa: {
547 doCheck = lua.luaversion == "5.1";
548 nativeCheckInputs = [ final.nlua final.busted ];
551 export HOME=$(mktemp -d)
557 neotest = prev.neotest.overrideAttrs(oa: {
558 doCheck = stdenv.isLinux;
559 nativeCheckInputs = oa.nativeCheckInputs ++ [
560 final.nlua final.busted neovim-unwrapped
563 # stick to neovim's lua version else loading shared libraries fail
564 meta = oa.meta // { broken = !isLua51; };
568 export HOME=$(mktemp -d)
569 export LUA_PATH="./lua/?.lua;./lua/?/init.lua;$LUA_PATH"
570 nvim --headless -i NONE \
571 --cmd "set rtp+=${vimPlugins.plenary-nvim}" \
572 -c "PlenaryBustedDirectory tests/ {sequential = true}"
578 haskell-tools-nvim = prev.haskell-tools-nvim.overrideAttrs(oa: {
579 doCheck = lua.luaversion == "5.1";
580 nativeCheckInputs = [ final.nlua final.busted ];
583 export HOME=$(mktemp -d)
589 neorg = prev.neorg.overrideAttrs (oa: {
591 substituteInPlace ''${rockspecFilename} \
592 --replace-fail "'nvim-nio ~> 1.7'," "'nvim-nio >= 1.7'," \
593 --replace-fail "'plenary.nvim == 0.1.4'," "'plenary.nvim',"
597 plenary-nvim = prev.plenary-nvim.overrideAttrs (oa: {
599 sed -Ei lua/plenary/curl.lua \
600 -e 's@(command\s*=\s*")curl(")@\1${curl}/bin/curl\2@'
603 # disabled for now because too flaky
615 # remove failing tests, need internet access for instance
616 rm tests/plenary/job_spec.lua tests/plenary/scandir_spec.lua tests/plenary/curl_spec.lua
617 export HOME="$TMPDIR"
623 # as advised in https://github.com/luarocks/luarocks/issues/1402#issuecomment-1080616570
624 # we shouldn't use luarocks machinery to build complex cmake components
625 libluv = stdenv.mkDerivation {
628 inherit (prev.luv) version meta src;
631 "-DBUILD_SHARED_LIBS=ON"
633 "-DWITH_SHARED_LIBUV=ON"
634 "-DLUA_BUILD_TYPE=System"
635 "-DWITH_LUA_ENGINE=${if isLuaJIT then "LuaJit" else "Lua"}"
638 # to make sure we dont use bundled deps
640 rm -rf deps/lua deps/libuv
643 buildInputs = [ libuv final.lua ];
645 nativeBuildInputs = [ pkg-config cmake ]
646 ++ lib.optionals stdenv.hostPlatform.isDarwin [ fixDarwinDylibNames ];
649 luv = prev.luv.overrideAttrs (oa: {
651 nativeBuildInputs = oa.nativeBuildInputs ++ [ pkg-config ];
652 buildInputs = [ libuv ];
654 # Use system libuv instead of building local and statically linking
655 luarocksConfig = lib.recursiveUpdate oa.luarocksConfig {
656 variables = { WITH_SHARED_LIBUV = "ON"; };
659 # we unset the LUA_PATH since the hook erases the interpreter defaults (To fix)
660 # tests is not run since they are not part of the tarball anymore
663 rm tests/test-{dns,thread}.lua
667 lyaml = prev.lyaml.overrideAttrs (oa: {
673 magick = prev.magick.overrideAttrs (oa: {
674 buildInputs = oa.buildInputs ++ [
678 # Fix MagickWand not being found in the pkg-config search path
684 substituteInPlace magick/wand/lib.lua \
685 --replace @nix_wand@ ${imagemagick}/lib/libMagickWand-7.Q16HDRI${stdenv.hostPlatform.extensions.sharedLibrary}
689 meta.broken = !isLuaJIT;
692 mpack = prev.mpack.overrideAttrs (drv: {
693 buildInputs = (drv.buildInputs or []) ++ [ libmpack ];
695 # the rockspec doesn't use the makefile so you may need to export more flags
696 USE_SYSTEM_LUA = "yes";
697 USE_SYSTEM_MPACK = "yes";
701 nlua = prev.nlua.overrideAttrs(oa: {
703 # patchShebang removes the nvim in nlua's shebang so we hardcode one
705 sed -i -e "1 s|.*|#\!${coreutils}/bin/env -S ${neovim-unwrapped}/bin/nvim -l|" "$out/bin/nlua"
707 dontPatchShebangs = true;
710 psl = prev.psl.overrideAttrs (drv: {
711 buildInputs = drv.buildInputs or [ ] ++ [ libpsl ];
713 luarocksConfig.variables = drv.luarocksConfig.variables // {
714 PSL_INCDIR = lib.getDev libpsl + "/include";
715 PSL_DIR = lib.getLib libpsl;
719 rapidjson = prev.rapidjson.overrideAttrs (oa: {
721 sed -i '/set(CMAKE_CXX_FLAGS/d' CMakeLists.txt
722 sed -i '/set(CMAKE_C_FLAGS/d' CMakeLists.txt
726 # upstream broken, can't be generated, so moved out from the generated set
727 readline = final.callPackage({ buildLuarocksPackage, fetchurl, luaAtLeast, luaOlder, lua, luaposix }:
728 buildLuarocksPackage ({
731 knownRockspec = (fetchurl {
732 url = "mirror://luarocks/readline-3.2-0.rockspec";
733 sha256 = "1r0sgisxm4xd1r6i053iibxh30j7j3rcj4wwkd8rzkj8nln20z24";
736 # the rockspec url doesn't work because 'www.' is not covered by the certificate so
737 # I manually removed the 'www' prefix here
738 url = "http://pjb.com.au/comp/lua/readline-3.2.tar.gz";
739 sha256 = "1mk9algpsvyqwhnq7jlw4cgmfzj30l7n2r6ak4qxgdxgc39f48k4";
742 luarocksConfig.variables = rec {
743 READLINE_INCDIR = "${readline.dev}/include";
744 HISTORY_INCDIR = READLINE_INCDIR;
751 propagatedBuildInputs = [
757 homepage = "http://pjb.com.au/comp/lua/readline.html";
758 description = "Interface to the readline library";
759 license.fullName = "MIT/X11";
760 broken = (luaOlder "5.1") || (luaAtLeast "5.5");
764 rtp-nvim = prev.rtp-nvim.overrideAttrs(oa: {
765 doCheck = lua.luaversion == "5.1";
766 nativeCheckInputs = [ final.nlua final.busted ];
769 export HOME=$(mktemp -d)
775 rustaceanvim = prev.rustaceanvim.overrideAttrs(oa: {
776 doCheck = lua.luaversion == "5.1";
777 nativeCheckInputs = [ final.nlua final.busted ];
780 export HOME=$(mktemp -d)
786 sqlite = prev.sqlite.overrideAttrs (drv: {
787 doCheck = stdenv.hostPlatform.isLinux;
788 nativeCheckInputs = [ final.plenary-nvim neovim-unwrapped ];
790 # the plugin loads the library from either the LIBSQLITE env
791 # or the vim.g.sqlite_clib_path variable.
793 substituteInPlace lua/sqlite/defs.lua \
794 --replace-fail "path = vim.g.sqlite_clib_path" 'path = vim.g.sqlite_clib_path or "${sqlite.out}/lib/libsqlite3${stdenv.hostPlatform.extensions.sharedLibrary}"'
797 # we override 'luarocks test' because otherwise neovim doesn't find/load the plenary plugin
799 export HOME="$TMPDIR";
801 nvim --headless -i NONE \
802 -u test/minimal_init.vim --cmd "set rtp+=${vimPlugins.plenary-nvim}" \
803 -c "PlenaryBustedDirectory test/auto/ { sequential = true, minimal_init = './test/minimal_init.vim' }"
808 std-_debug = prev.std-_debug.overrideAttrs (oa: {
809 # run make to generate lib/std/_debug/version.lua
815 std-normalize = prev.std-normalize.overrideAttrs (oa: {
816 # run make to generate lib/std/_debug/version.lua
822 tiktoken_core = prev.tiktoken_core.overrideAttrs (oa: {
823 cargoDeps = rustPlatform.fetchCargoTarball {
825 hash = "sha256-pKqG8aiV8BvvDO6RE6J3HEA/S4E4QunbO4WBpV5jUYk=";
827 nativeBuildInputs = oa.nativeBuildInputs ++ [ cargo rustPlatform.cargoSetupHook ];
830 toml-edit = prev.toml-edit.overrideAttrs (oa: {
832 cargoDeps = rustPlatform.fetchCargoTarball {
834 hash = "sha256-2WN5RoM1G2SE6H3g5pmEQvOoSCoaw3xMG8cDdfU2DAo=";
837 NIX_LDFLAGS = lib.optionalString stdenv.hostPlatform.isDarwin
838 (if lua.pkgs.isLuaJIT then "-lluajit-${lua.luaversion}" else "-llua");
840 nativeBuildInputs = oa.nativeBuildInputs ++ [
842 rustPlatform.cargoSetupHook
843 lua.pkgs.luarocks-build-rust-mlua
848 tree-sitter-norg = prev.tree-sitter-norg.overrideAttrs (oa: {
849 propagatedBuildInputs = let
850 # HACK: luarocks-nix puts rockspec build dependencies in the nativeBuildInputs,
851 # but that doesn't seem to work
852 lua = lib.head oa.propagatedBuildInputs;
853 in oa.propagatedBuildInputs ++ [
854 lua.pkgs.luarocks-build-treesitter-parser-cpp
858 vstruct = prev.vstruct.overrideAttrs (_: {
859 meta.broken = (luaOlder "5.1" || luaAtLeast "5.4");
862 vusted = prev.vusted.overrideAttrs (_: {
864 cat ''${rockspecFilename}
865 substituteInPlace ''${rockspecFilename} \
866 --replace-fail '"luasystem = 0.2.1",' "'luasystem >= 0.2',"
869 # make sure vusted_entry.vim doesn't get wrapped
871 chmod -x $out/bin/vusted_entry.vim
877 cjson = prev.lua-cjson;