2018-11-11 21:20:41 +00:00
|
|
|
{ stdenv, fetchurl, python, wxGTK29, mupen64plus, SDL, libX11, libGLU_combined
|
|
|
|
, wafHook }:
|
2013-03-28 17:12:27 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation {
|
|
|
|
name = "wxmupen64plus-0.3";
|
|
|
|
src = fetchurl {
|
|
|
|
url = "https://bitbucket.org/auria/wxmupen64plus/get/0.3.tar.bz2";
|
|
|
|
sha256 = "1mnxi4k011dd300k35li2p6x4wccwi6im21qz8dkznnz397ps67c";
|
|
|
|
};
|
2017-03-30 15:21:19 +01:00
|
|
|
|
2018-11-11 21:20:41 +00:00
|
|
|
nativeBuildInputs = [ wafHook ];
|
2018-02-24 13:12:44 +00:00
|
|
|
buildInputs = [ python wxGTK29 SDL libX11 libGLU_combined ];
|
2013-03-28 17:12:27 +00:00
|
|
|
|
2018-11-11 21:20:41 +00:00
|
|
|
preConfigure = ''
|
2013-03-28 17:12:27 +00:00
|
|
|
tar xf ${mupen64plus.src}
|
|
|
|
APIDIR=$(eval echo `pwd`/mupen64plus*/source/mupen64plus-core/src/api)
|
2016-04-16 18:53:46 +01:00
|
|
|
export CXXFLAGS="-I${libX11.dev}/include/X11 -DLIBDIR=\\\"${mupen64plus}/lib/\\\""
|
2013-03-28 17:12:27 +00:00
|
|
|
export LDFLAGS="-lwx_gtk2u_adv-2.9"
|
|
|
|
|
2018-11-11 21:20:41 +00:00
|
|
|
configureFlagsArray+=("--mupenapi=$APIDIR" "--wxconfig=`type -P wx-config`")
|
|
|
|
'';
|
2017-03-30 15:21:19 +01:00
|
|
|
|
2013-03-28 17:12:27 +00:00
|
|
|
meta = {
|
|
|
|
description = "GUI for the Mupen64Plus 2.0 emulator";
|
2014-06-19 05:19:00 +01:00
|
|
|
license = stdenv.lib.licenses.gpl2Plus;
|
2013-03-28 17:12:27 +00:00
|
|
|
homepage = https://bitbucket.org/auria/wxmupen64plus/wiki/Home;
|
2017-03-30 16:36:22 +01:00
|
|
|
broken = true;
|
2013-03-28 17:12:27 +00:00
|
|
|
};
|
|
|
|
}
|