The MelonDS package provides an NDS emulator.
CMake, enet-1.3.18, extra-cmake-modules, libarchive, OpenGL (libglvnd or Mesa; Mesa's GL is not supported), Qt-6, SDL2, and Xorg Libraries
Install MelonDS by running the following commands:
mkdir build &&
cd build &&
CXXFLAGS+=" -fno-lto" \
cmake -D CMAKE_INSTALL_PREFIX=/usr \
-D CMAKE_BUILD_TYPE=Release \
-G Ninja .. &&
ninja
Now, as the root user:
ninja install