Darktable lua scripts disabled?

I have installed Darktable in CachyOS/Arch Linux. When i start Darktable, i miss the lua scripts. When i use the commandline with darktable -d lua, i see that lua seems to be disabled:

darktable -d lua
darktable 5.4.1
Copyright (C) 2012-2026 Johannes Hanika and other contributors.

Compile options:
  Bit depth              -> 64 bit
  Exiv2                  -> 0.28.8
  Lensfun                -> 0.3.4
  Debug                  -> DISABLED
  SSE2 optimizations     -> ENABLED
  OpenMP                 -> ENABLED
  OpenCL                 -> ENABLED
  Lua                    -> DISABLED
  Colord                 -> ENABLED
  gPhoto2                -> ENABLED
  OSMGpsMap              -> ENABLED  - map view is available
  GMIC                   -> ENABLED  - Compressed LUTs are supported
  GraphicsMagick         -> ENABLED
  ImageMagick            -> DISABLED
  libavif                -> ENABLED
  libheif                -> ENABLED
  libjxl                 -> ENABLED
  LibRaw                 -> ENABLED  - Version 0.22.0-Release
  OpenJPEG               -> ENABLED
  OpenEXR                -> ENABLED
  WebP                   -> ENABLED

See https://www.darktable.org/resources/ for detailed documentation.
See https://github.com/darktable-org/darktable/issues/new/choose to report bugs.

     0.0001 [dt starting]
 darktable -d lua
     1,0569 [lib_load_module] failed to open `midi': libportmidi.so.2: Kann die Shared-Object-Datei nicht öffnen: Datei oder Verzeichnis nicht gefunden

How do i enable lua scripting again?

Did you build this yourself or is a package from somewhere?

It appears that it was built without Lua support

You most likely installed a package from the distribution. Lua 5.5 is currently being deployed in rolling package bases (such as in Homebrew, Arch, and MSYS2). However, there are some differences between Lua versions at the language level, and Darktable requires version 5.4 specifically. The problem is that until recently, in Darktable, if it was impossible to build with optional features, they would be automatically disabled and the build would proceed without them. Unfortunately, this behavior hid build/packaging errors rather than helped.

Contact the Arch packager and explain that they need to rebuild Darktable with Lua 5.4. Alternatively, you can download and use our AppImage build for now.

I think this is likely it. I have the same problem, I updated the msys2 recently and lua is now 5.5… I got this error msg on my attempt today…

CMake Error at src/CMakeLists.txt:783 (message):
Lua support: System library for Lua 5.4 not found (to use darktable’s
version add -DDONT_USE_INTERNAL_LUA=Off)