2021-02-05 17:12:51 +00:00
|
|
|
{ lib
|
2024-01-25 14:12:00 +00:00
|
|
|
, SDL2
|
2020-12-25 13:55:36 +00:00
|
|
|
, cmake
|
2023-01-11 07:51:40 +00:00
|
|
|
, extra-cmake-modules
|
2024-01-25 14:12:00 +00:00
|
|
|
, fetchFromGitHub
|
2024-05-15 15:35:15 +00:00
|
|
|
, libGL
|
2021-09-18 10:52:07 +00:00
|
|
|
, libarchive
|
2020-12-25 13:55:36 +00:00
|
|
|
, libpcap
|
2024-01-25 14:12:00 +00:00
|
|
|
, libsForQt5
|
2020-12-25 13:55:36 +00:00
|
|
|
, libslirp
|
2021-09-18 10:52:07 +00:00
|
|
|
, pkg-config
|
2024-01-25 14:12:00 +00:00
|
|
|
, stdenv
|
2024-05-15 15:35:15 +00:00
|
|
|
, unstableGitUpdater
|
2023-01-11 07:51:40 +00:00
|
|
|
, wayland
|
2024-01-25 14:12:00 +00:00
|
|
|
, zstd
|
2020-12-25 13:55:36 +00:00
|
|
|
}:
|
2020-06-18 07:06:33 +00:00
|
|
|
|
2024-01-25 14:12:00 +00:00
|
|
|
let
|
|
|
|
inherit (libsForQt5)
|
|
|
|
qtbase
|
|
|
|
qtmultimedia
|
|
|
|
wrapQtAppsHook;
|
|
|
|
in
|
|
|
|
stdenv.mkDerivation (finalAttrs: {
|
2020-06-18 07:06:33 +00:00
|
|
|
pname = "melonDS";
|
2024-06-05 15:53:02 +00:00
|
|
|
version = "0.9.5-unstable-2024-05-15";
|
2020-06-18 07:06:33 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
2024-01-25 14:12:00 +00:00
|
|
|
owner = "melonDS-emu";
|
|
|
|
repo = "melonDS";
|
2024-06-05 15:53:02 +00:00
|
|
|
rev = "a72b79a55ad2d61811af11b1b911f6af863f66c2";
|
|
|
|
hash = "sha256-cdKfJ316iuRajdrRESt68oR8vkHISFRdHXxVuvGSUqE=";
|
2020-06-18 07:06:33 +00:00
|
|
|
};
|
|
|
|
|
2023-01-11 07:51:40 +00:00
|
|
|
nativeBuildInputs = [
|
|
|
|
cmake
|
|
|
|
pkg-config
|
|
|
|
wrapQtAppsHook
|
|
|
|
];
|
|
|
|
|
2020-12-25 13:55:36 +00:00
|
|
|
buildInputs = [
|
2024-01-25 14:12:00 +00:00
|
|
|
SDL2
|
|
|
|
extra-cmake-modules
|
2021-09-18 10:52:07 +00:00
|
|
|
libarchive
|
2020-12-25 13:55:36 +00:00
|
|
|
libslirp
|
2024-01-25 14:12:00 +00:00
|
|
|
libGL
|
2021-09-18 10:52:07 +00:00
|
|
|
qtbase
|
2023-01-11 07:51:40 +00:00
|
|
|
qtmultimedia
|
|
|
|
wayland
|
2024-01-25 14:12:00 +00:00
|
|
|
zstd
|
2020-12-25 13:55:36 +00:00
|
|
|
];
|
2020-06-18 07:06:33 +00:00
|
|
|
|
2024-01-25 14:12:00 +00:00
|
|
|
strictDeps = true;
|
|
|
|
|
|
|
|
qtWrapperArgs = [
|
|
|
|
"--prefix LD_LIBRARY_PATH : ${lib.makeLibraryPath [ libpcap ]}"
|
|
|
|
];
|
2021-10-01 09:20:50 +00:00
|
|
|
|
2024-05-15 15:35:15 +00:00
|
|
|
passthru = {
|
|
|
|
updateScript = unstableGitUpdater { };
|
|
|
|
};
|
|
|
|
|
2024-01-25 14:12:00 +00:00
|
|
|
meta = {
|
2023-02-02 18:25:31 +00:00
|
|
|
homepage = "https://melonds.kuribo64.net/";
|
2020-06-18 07:06:33 +00:00
|
|
|
description = "Work in progress Nintendo DS emulator";
|
2024-05-15 15:35:15 +00:00
|
|
|
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!
|
|
|
|
'';
|
2024-01-25 14:12:00 +00:00
|
|
|
license = with lib.licenses; [ gpl3Plus ];
|
2023-08-04 22:07:22 +00:00
|
|
|
mainProgram = "melonDS";
|
2024-01-25 14:12:00 +00:00
|
|
|
maintainers = with lib.maintainers; [
|
|
|
|
AndersonTorres
|
|
|
|
artemist
|
|
|
|
benley
|
|
|
|
shamilton
|
|
|
|
];
|
|
|
|
platforms = lib.platforms.linux;
|
2020-06-18 07:06:33 +00:00
|
|
|
};
|
2024-01-25 14:12:00 +00:00
|
|
|
})
|