summary refs log tree commit diff
path: root/pkgs/misc/emulators/wxmupen64plus/default.nix
blob: 7be91176318194fcd1bb2533356c8dcc3b59a1c8 (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
{stdenv, fetchurl, python, wxGTK29, mupen64plus, SDL, libX11, libGLU_combined}:

stdenv.mkDerivation {
  name = "wxmupen64plus-0.3";
  src = fetchurl {
    url = "https://bitbucket.org/auria/wxmupen64plus/get/0.3.tar.bz2";
    sha256 = "1mnxi4k011dd300k35li2p6x4wccwi6im21qz8dkznnz397ps67c";
  };

  buildInputs = [ python wxGTK29 SDL libX11 libGLU_combined ];

  configurePhase = ''
    tar xf ${mupen64plus.src}
    APIDIR=$(eval echo `pwd`/mupen64plus*/source/mupen64plus-core/src/api)
    export CXXFLAGS="-I${libX11.dev}/include/X11 -DLIBDIR=\\\"${mupen64plus}/lib/\\\""
    export LDFLAGS="-lwx_gtk2u_adv-2.9"
    python waf configure --mupenapi=$APIDIR --wxconfig=`type -P wx-config` --prefix=$out
  '';

  buildPhase = "python waf";
  installPhase = "python waf install";

  meta = {
    description = "GUI for the Mupen64Plus 2.0 emulator";
    license = stdenv.lib.licenses.gpl2Plus;
    homepage = https://bitbucket.org/auria/wxmupen64plus/wiki/Home;
    broken = true;
  };
}