1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
|
{
lib,
SDL2,
cmake,
enet,
extra-cmake-modules,
fetchFromGitHub,
libGL,
libarchive,
libpcap,
libslirp,
pkg-config,
qt6,
stdenv,
unstableGitUpdater,
wayland,
zstd,
}:
let
inherit (qt6)
qtbase
qtmultimedia
qtwayland
wrapQtAppsHook
;
in
stdenv.mkDerivation (finalAttrs: {
pname = "melonDS";
version = "0.9.5-unstable-2024-09-18";
src = fetchFromGitHub {
owner = "melonDS-emu";
repo = "melonDS";
rev = "2179ca2a417e356f23a09cd88707b20c1bcaf66f";
hash = "sha256-93KbpRlVVZc8JoaZiVLKOsTezLqY2Y7J2bFL7RkCcxM=";
};
nativeBuildInputs = [
cmake
pkg-config
wrapQtAppsHook
];
buildInputs =
[
SDL2
enet
extra-cmake-modules
libarchive
libslirp
libGL
qtbase
qtmultimedia
zstd
]
++ lib.optionals stdenv.isLinux [
wayland
qtwayland
];
cmakeFlags = [ (lib.cmakeBool "USE_QT6" true) ];
strictDeps = true;
qtWrapperArgs =
lib.optionals stdenv.isLinux [
"--prefix LD_LIBRARY_PATH : ${
lib.makeLibraryPath [
libpcap
wayland
]
}"
]
++ lib.optionals stdenv.isDarwin [
"--prefix DYLD_LIBRARY_PATH : ${lib.makeLibraryPath [ libpcap ]}"
];
passthru = {
updateScript = unstableGitUpdater { };
};
meta = {
homepage = "https://melonds.kuribo64.net/";
description = "Work in progress Nintendo DS emulator";
longDescription = ''
melonDS aims at providing fast and accurate Nintendo DS emulation. While
it is still a work in progress, it has a pretty solid set of features:
- Nearly complete core (CPU, video, audio, ...)
- JIT recompiler for fast emulation
- OpenGL renderer, 3D upscaling
- RTC, microphone, lid close/open
- Joystick support
- Savestates
- Various display position/sizing/rotation modes
- (WIP) Wifi: local multiplayer, online connectivity
- (WIP) DSi emulation
- DLDI
- (WIP) GBA slot add-ons
- and more are planned!
'';
license = with lib.licenses; [ gpl3Plus ];
mainProgram = "melonDS";
maintainers = with lib.maintainers; [
AndersonTorres
artemist
benley
shamilton
];
platforms = lib.platforms.linux ++ lib.platforms.darwin;
};
})
|