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.

94 lines
1.9 KiB
Nix
Raw Normal View History

{ lib
, SDL2
, cmake
2023-01-03 18:20:13 +00:00
, extra-cmake-modules
, fetchFromGitHub
, libGL
2021-09-13 19:23:30 +00:00
, libarchive
, libpcap
, libsForQt5
, libslirp
2021-09-13 19:23:30 +00:00
, pkg-config
, stdenv
, unstableGitUpdater
2023-01-03 18:20:13 +00:00
, wayland
, zstd
}:
2019-10-28 22:13:45 +00:00
let
inherit (libsForQt5)
qtbase
qtmultimedia
wrapQtAppsHook;
in
stdenv.mkDerivation (finalAttrs: {
2019-10-28 22:13:45 +00:00
pname = "melonDS";
version = "0.9.5-unstable-2024-06-24";
2019-10-28 22:13:45 +00:00
src = fetchFromGitHub {
owner = "melonDS-emu";
repo = "melonDS";
rev = "db20771ef36bfa5bc0dc624cf245844507724107";
hash = "sha256-XGDMA+0IOvl1UN2HgfLikpxHXl/p0z+Yv6fJs5xv08Y=";
2019-10-28 22:13:45 +00:00
};
2023-01-03 18:20:13 +00:00
nativeBuildInputs = [
cmake
pkg-config
wrapQtAppsHook
];
buildInputs = [
SDL2
extra-cmake-modules
2021-09-13 19:23:30 +00:00
libarchive
libslirp
libGL
2021-09-13 19:23:30 +00:00
qtbase
2023-01-03 18:20:13 +00:00
qtmultimedia
wayland
zstd
];
2019-10-28 22:13:45 +00:00
strictDeps = true;
qtWrapperArgs = [
"--prefix LD_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
];
platforms = lib.platforms.linux;
2019-10-28 22:13:45 +00:00
};
})