The MelonDS package provides an NDS emulator.
CMake, enet-1.3.18, extra-cmake-modules, libarchive, OpenGL (libglvnd or Mesa; only the normal installation is required for either), Qt-6, SDL2, and Xorg Libraries
Install MelonDS by running the following commands:
mkdir build && cd build && cmake -D CMAKE_INSTALL_PREFIX=/usr \ -D CMAKE_BUILD_TYPE=Release \ -G Ninja .. && ninja
Now, as the root
user:
ninja install