summary refs log tree commit diff
path: root/pkgs/misc/emulators/desmume/default.nix
blob: f322a96905fb8335a6c29d788c31716e6f870595 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
{ stdenv, fetchurl
, pkgconfig, libtool, intltool
, libXmu
, lua
, agg, alsaLib, soundtouch, openal
, desktop_file_utils
, gtk2, gtkglext, libglade, pangox_compat
, mesa, mesa_glu, libpcap, SDL, zziplib }:

with stdenv.lib;
stdenv.mkDerivation rec {

  name = "desmume-${version}";
  version = "0.9.11";

  src = fetchurl {
    url = "http://downloads.sourceforge.net/project/desmume/desmume/${version}/${name}.tar.gz";
    sha256 = "15l8wdw3q61fniy3h93d84dnm6s4pyadvh95a0j6d580rjk4pcrs";
  };

  buildInputs =
  [ pkgconfig libtool intltool libXmu lua agg alsaLib soundtouch
    openal desktop_file_utils gtk2 gtkglext libglade pangox_compat
    mesa mesa_glu libpcap SDL zziplib ];

  configureFlags = [
    "--disable-osmesa" # Failing on compile step
    "--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 osmesa and glade