nixpkgs/pkgs/by-name/me/melonDS/package.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

114 lines
2.3 KiB
Nix
Raw Normal View History

2024-07-05 02:39:56 +00:00
{
lib,
SDL2,
cmake,
2024-08-11 15:01:20 +00:00
enet,
extra-cmake-modules,
2024-07-05 02:39:56 +00:00
fetchFromGitHub,
libGL,
libarchive,
libpcap,
libslirp,
pkg-config,
qt6,
stdenv,
unstableGitUpdater,
wayland,
zstd,
}:
2019-10-28 22:13:45 +00:00
let
2024-07-05 12:13:18 +00:00
inherit (qt6)
qtbase
qtmultimedia
qtwayland
wrapQtAppsHook
;
in
stdenv.mkDerivation (finalAttrs: {
2019-10-28 22:13:45 +00:00
pname = "melonDS";
version = "0.9.5-unstable-2024-09-29";
2019-10-28 22:13:45 +00:00
src = fetchFromGitHub {
owner = "melonDS-emu";
repo = "melonDS";
rev = "e9446fa9dc3ba64c22f8e5bb611ad394b5729eda";
hash = "sha256-0YNF9NPKaaKzC3d8cXG4Od3AUc1zxVtuB5u2Q8ruwr0=";
2019-10-28 22:13:45 +00:00
};
2023-01-03 18:20:13 +00:00
nativeBuildInputs = [
cmake
pkg-config
wrapQtAppsHook
];
buildInputs =
[
SDL2
enet
extra-cmake-modules
libarchive
libslirp
libGL
qtbase
qtmultimedia
zstd
]
++ lib.optionals stdenv.hostPlatform.isLinux [
wayland
qtwayland
];
2019-10-28 22:13:45 +00:00
cmakeFlags = [ (lib.cmakeBool "USE_QT6" true) ];
2024-07-05 12:13:18 +00:00
strictDeps = true;
qtWrapperArgs =
lib.optionals stdenv.hostPlatform.isLinux [
"--prefix LD_LIBRARY_PATH : ${
lib.makeLibraryPath [
libpcap
wayland
]
}"
]
++ lib.optionals stdenv.hostPlatform.isDarwin [
"--prefix DYLD_LIBRARY_PATH : ${lib.makeLibraryPath [ libpcap ]}"
];
passthru = {
updateScript = unstableGitUpdater { };
};
meta = {
homepage = "https://melonds.kuribo64.net/";
2019-10-28 22:13:45 +00:00
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
];
2024-07-04 20:51:03 +00:00
platforms = lib.platforms.linux ++ lib.platforms.darwin;
2019-10-28 22:13:45 +00:00
};
})