2021-01-17 00:15:33 +00:00
|
|
|
{ lib, stdenv, fetchurl, fetchpatch
|
2021-02-05 17:12:51 +00:00
|
|
|
, pkg-config, libtool, intltool
|
2020-04-24 23:36:52 +00:00
|
|
|
, libXmu
|
|
|
|
, lua
|
|
|
|
, tinyxml
|
|
|
|
, agg, alsaLib, soundtouch, openal
|
|
|
|
, desktop-file-utils
|
|
|
|
, gtk2, gtkglext, libglade
|
|
|
|
, libGLU, libpcap, SDL, zziplib }:
|
|
|
|
|
2021-01-17 00:15:33 +00:00
|
|
|
with lib;
|
2020-04-24 23:36:52 +00:00
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
|
|
|
|
pname = "desmume";
|
|
|
|
version = "0.9.11";
|
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "mirror://sourceforge/project/desmume/desmume/${version}/${pname}-${version}.tar.gz";
|
|
|
|
sha256 = "15l8wdw3q61fniy3h93d84dnm6s4pyadvh95a0j6d580rjk4pcrs";
|
|
|
|
};
|
|
|
|
|
|
|
|
patches = [
|
|
|
|
./gcc6_fixes.patch
|
|
|
|
./gcc7_fixes.patch
|
|
|
|
./01_use_system_tinyxml.patch
|
|
|
|
];
|
|
|
|
|
|
|
|
CXXFLAGS = "-fpermissive";
|
|
|
|
|
|
|
|
buildInputs =
|
2021-02-05 17:12:51 +00:00
|
|
|
[ pkg-config libtool intltool libXmu lua agg alsaLib soundtouch
|
2020-04-24 23:36:52 +00:00
|
|
|
openal desktop-file-utils gtk2 gtkglext libglade
|
|
|
|
libGLU libpcap SDL zziplib tinyxml ];
|
|
|
|
|
|
|
|
configureFlags = [
|
|
|
|
"--disable-glade" # Failing on compile step
|
|
|
|
"--enable-openal"
|
|
|
|
"--enable-glx"
|
|
|
|
"--enable-hud"
|
|
|
|
"--enable-wifi" ];
|
|
|
|
|
|
|
|
meta = {
|
|
|
|
description = "An open-source Nintendo DS emulator";
|
|
|
|
longDescription = ''
|
|
|
|
DeSmuME is a freeware emulator for the NDS roms & Nintendo DS
|
|
|
|
Lite games created by YopYop156. 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
|
|
|
|
commercial nds rom titles which other DS Emulators aren't.
|
|
|
|
'';
|
|
|
|
homepage = "http://www.desmume.com";
|
|
|
|
license = licenses.gpl1Plus;
|
|
|
|
maintainers = [ maintainers.AndersonTorres ];
|
|
|
|
platforms = platforms.linux;
|
|
|
|
};
|
|
|
|
}
|
|
|
|
# TODO: investigate glade
|