2017-09-10 16:52:13 +02:00
|
|
|
{ stdenv, fetchurl, fetchpatch
|
2015-09-12 23:21:45 +02:00
|
|
|
, pkgconfig, libtool, intltool
|
|
|
|
, libXmu
|
|
|
|
, lua
|
2019-10-04 12:03:09 +02:00
|
|
|
, tinyxml
|
2015-09-12 23:21:45 +02:00
|
|
|
, agg, alsaLib, soundtouch, openal
|
2018-02-25 03:23:58 +01:00
|
|
|
, desktop-file-utils
|
2019-12-19 01:01:21 +01:00
|
|
|
, gtk2, gtkglext, libglade
|
2018-02-24 13:59:47 +01:00
|
|
|
, libGLU, libpcap, SDL, zziplib }:
|
2015-09-12 23:21:45 +02:00
|
|
|
|
|
|
|
with stdenv.lib;
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
|
2019-08-15 14:41:18 +02:00
|
|
|
pname = "desmume";
|
2015-09-12 23:21:45 +02:00
|
|
|
version = "0.9.11";
|
|
|
|
|
|
|
|
src = fetchurl {
|
2019-08-15 14:41:18 +02:00
|
|
|
url = "mirror://sourceforge/project/desmume/desmume/${version}/${pname}-${version}.tar.gz";
|
2015-09-12 23:21:45 +02:00
|
|
|
sha256 = "15l8wdw3q61fniy3h93d84dnm6s4pyadvh95a0j6d580rjk4pcrs";
|
|
|
|
};
|
|
|
|
|
2017-09-10 16:52:13 +02:00
|
|
|
patches = [
|
2019-10-04 12:03:09 +02:00
|
|
|
./gcc6_fixes.patch
|
|
|
|
./gcc7_fixes.patch
|
|
|
|
./01_use_system_tinyxml.patch
|
2017-09-10 16:52:13 +02:00
|
|
|
];
|
|
|
|
|
2018-03-04 04:09:43 +01:00
|
|
|
CXXFLAGS = "-fpermissive";
|
|
|
|
|
2015-09-12 23:21:45 +02:00
|
|
|
buildInputs =
|
|
|
|
[ pkgconfig libtool intltool libXmu lua agg alsaLib soundtouch
|
2019-12-19 01:01:21 +01:00
|
|
|
openal desktop-file-utils gtk2 gtkglext libglade
|
2019-10-04 12:03:09 +02:00
|
|
|
libGLU libpcap SDL zziplib tinyxml ];
|
2015-09-12 23:21:45 +02:00
|
|
|
|
|
|
|
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.
|
|
|
|
'';
|
2020-04-01 03:11:51 +02:00
|
|
|
homepage = "http://www.desmume.com";
|
2015-09-12 23:21:45 +02:00
|
|
|
license = licenses.gpl1Plus;
|
|
|
|
maintainers = [ maintainers.AndersonTorres ];
|
|
|
|
platforms = platforms.linux;
|
|
|
|
};
|
|
|
|
}
|
2017-04-16 11:21:28 +02:00
|
|
|
# TODO: investigate glade
|