nixpkgs-suyu/pkgs/misc/emulators/wxmupen64plus/default.nix

33 lines
1,004 B
Nix
Raw Normal View History

2021-01-15 14:21:58 +01:00
{ lib, stdenv, fetchurl, python, wxGTK29, mupen64plus, SDL, libX11, libGLU, libGL
, wafHook }:
2021-08-12 23:00:21 +02:00
stdenv.mkDerivation rec {
pname = "wxmupen64plus";
version = "0.3";
src = fetchurl {
2021-08-12 23:00:21 +02:00
url = "https://bitbucket.org/auria/wxmupen64plus/get/${version}.tar.bz2";
sha256 = "1mnxi4k011dd300k35li2p6x4wccwi6im21qz8dkznnz397ps67c";
};
2017-03-30 16:21:19 +02:00
nativeBuildInputs = [ wafHook ];
2019-11-10 17:44:34 +01:00
buildInputs = [ python wxGTK29 SDL libX11 libGLU libGL ];
preConfigure = ''
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"
wafConfigureFlagsArray+=("--mupenapi=$APIDIR" "--wxconfig=`type -P wx-config`")
'';
2017-03-30 16:21:19 +02:00
NIX_CFLAGS_COMPILE = "-fpermissive";
meta = {
description = "GUI for the Mupen64Plus 2.0 emulator";
2021-01-15 14:21:58 +01:00
license = lib.licenses.gpl2Plus;
homepage = "https://bitbucket.org/auria/wxmupen64plus/wiki/Home";
};
}