2021-09-29 04:46:58 +00:00
|
|
|
{ lib
|
|
|
|
, stdenv
|
|
|
|
, fetchFromGitHub
|
2022-11-28 23:03:05 +00:00
|
|
|
, fetchpatch
|
2021-09-29 04:46:58 +00:00
|
|
|
, SDL2
|
|
|
|
, agg
|
|
|
|
, alsa-lib
|
|
|
|
, desktop-file-utils
|
|
|
|
, gtk3
|
|
|
|
, intltool
|
|
|
|
, libGLU
|
2015-09-12 21:21:45 +00:00
|
|
|
, libXmu
|
2021-09-29 04:46:58 +00:00
|
|
|
, libpcap
|
|
|
|
, libtool
|
2015-09-12 21:21:45 +00:00
|
|
|
, lua
|
2021-09-29 04:46:58 +00:00
|
|
|
, meson
|
|
|
|
, ninja
|
|
|
|
, openal
|
|
|
|
, pkg-config
|
|
|
|
, soundtouch
|
2019-10-04 10:03:09 +00:00
|
|
|
, tinyxml
|
2021-09-29 04:46:58 +00:00
|
|
|
, zlib
|
|
|
|
}:
|
2015-09-12 21:21:45 +00:00
|
|
|
|
2022-11-14 02:46:56 +00:00
|
|
|
stdenv.mkDerivation (finalAttrs: {
|
2019-08-15 12:41:18 +00:00
|
|
|
pname = "desmume";
|
2022-11-14 02:46:56 +00:00
|
|
|
version = "0.9.13";
|
2015-09-12 21:21:45 +00:00
|
|
|
|
2021-09-29 04:46:58 +00:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "TASVideos";
|
2022-11-14 02:46:56 +00:00
|
|
|
repo = "desmume";
|
2022-12-12 01:36:03 +00:00
|
|
|
rev = "release_${lib.replaceStrings ["."] ["_"] finalAttrs.version}";
|
2022-11-14 02:46:56 +00:00
|
|
|
hash = "sha256-vmjKXa/iXLTwtqnG+ZUvOnOQPZROeMpfM5J3Jh/Ynfo=";
|
2015-09-12 21:21:45 +00:00
|
|
|
};
|
|
|
|
|
2022-11-28 23:03:05 +00:00
|
|
|
patches = [
|
|
|
|
# Fix compiling on GCC for AArch64
|
|
|
|
(fetchpatch {
|
|
|
|
url = "https://github.com/TASEmulators/desmume/commit/24eb5ed95c6cbdaba8b3c63a99e95e899e8a5061.patch";
|
|
|
|
hash = "sha256-J3ZRU1tPTl+4/jg0DBo6ro6DTUZkpQCey+QGF2EugCQ=";
|
|
|
|
})
|
|
|
|
];
|
|
|
|
|
2021-09-29 04:46:58 +00:00
|
|
|
nativeBuildInputs = [
|
|
|
|
desktop-file-utils
|
|
|
|
intltool
|
|
|
|
libtool
|
|
|
|
lua
|
|
|
|
meson
|
|
|
|
ninja
|
|
|
|
pkg-config
|
|
|
|
];
|
|
|
|
|
|
|
|
buildInputs = [
|
|
|
|
SDL2
|
|
|
|
agg
|
|
|
|
alsa-lib
|
|
|
|
gtk3
|
|
|
|
libGLU
|
|
|
|
libXmu
|
|
|
|
libpcap
|
|
|
|
openal
|
|
|
|
soundtouch
|
|
|
|
tinyxml
|
|
|
|
zlib
|
2017-09-10 14:52:13 +00:00
|
|
|
];
|
|
|
|
|
2021-09-29 04:46:58 +00:00
|
|
|
hardeningDisable = [ "format" ];
|
2018-03-04 03:09:43 +00:00
|
|
|
|
2021-09-29 04:46:58 +00:00
|
|
|
preConfigure = ''
|
|
|
|
cd desmume/src/frontend/posix
|
|
|
|
'';
|
2015-09-12 21:21:45 +00:00
|
|
|
|
2021-09-29 04:46:58 +00:00
|
|
|
mesonFlags = [
|
|
|
|
"-Db_pie=true"
|
|
|
|
"-Dopenal=true"
|
|
|
|
"-Dwifi=true"
|
|
|
|
];
|
2015-09-12 21:21:45 +00:00
|
|
|
|
2021-09-29 04:46:58 +00:00
|
|
|
meta = with lib; {
|
2021-09-29 21:39:17 +00:00
|
|
|
homepage = "https://www.github.com/TASVideos/desmume/";
|
2015-09-12 21:21:45 +00:00
|
|
|
description = "An open-source Nintendo DS emulator";
|
|
|
|
longDescription = ''
|
2021-09-29 21:39:17 +00:00
|
|
|
DeSmuME is a freeware emulator for the NDS roms & Nintendo DS Lite games
|
|
|
|
created by YopYop156 and now maintained by the TASvideos team. It supports
|
|
|
|
many homebrew nds rom demoes as well as a handful of Wireless Multiboot
|
|
|
|
demo nds roms. DeSmuME is also able to emulate nearly all of the
|
2015-09-12 21:21:45 +00:00
|
|
|
commercial nds rom titles which other DS Emulators aren't.
|
|
|
|
'';
|
2021-09-29 04:46:58 +00:00
|
|
|
license = licenses.gpl2Plus;
|
2015-09-12 21:21:45 +00:00
|
|
|
maintainers = [ maintainers.AndersonTorres ];
|
2021-09-29 04:46:58 +00:00
|
|
|
platforms = platforms.unix;
|
2015-09-12 21:21:45 +00:00
|
|
|
};
|
2022-11-14 02:46:56 +00:00
|
|
|
})
|