mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-16 06:45:16 +01:00
Updating mupen64plus, and adding a GUI for it.
I can't say the GUI works very well... it doesn't find the core properly, but I couldn't find why.
This commit is contained in:
parent
c98af108d0
commit
3abc3f4a68
3 changed files with 35 additions and 17 deletions
|
@ -1,28 +1,16 @@
|
||||||
{stdenv, fetchurl, which, pkgconfig, SDL, gtk, mesa, SDL_ttf}:
|
{stdenv, fetchurl, which, pkgconfig, SDL, gtk, mesa, SDL_ttf}:
|
||||||
|
|
||||||
stdenv.mkDerivation {
|
stdenv.mkDerivation {
|
||||||
name = "mupen64plus-1.5";
|
name = "mupen64plus-1.99.5";
|
||||||
src = fetchurl {
|
src = fetchurl {
|
||||||
url = http://mupen64plus.googlecode.com/files/Mupen64Plus-1-5-src.tar.gz;
|
url = https://mupen64plus.googlecode.com/files/mupen64plus-bundle-src-1.99.5.tar.gz;
|
||||||
sha256 = "0gygfgyr2sg4yx77ijk133d1ra0v1yxi4xjxrg6kp3zdjmhdmcjq";
|
sha1 = "ca80ae446c9591e272e3ec93f0a2a8b01cfcd34e";
|
||||||
};
|
};
|
||||||
|
|
||||||
buildInputs = [ which pkgconfig SDL gtk mesa SDL_ttf ];
|
buildInputs = [ which pkgconfig SDL gtk mesa SDL_ttf ];
|
||||||
|
|
||||||
preConfigure = ''
|
buildPhase = "./m64p_build.sh PREFIX=$out COREDIR=$out/lib/ PLUGINDIR=$out/lib/mupen64plus/ SHAREDIR=$out/share/mupen64plus/";
|
||||||
# Some C++ incompatibility fixes
|
installPhase = "./m64p_install.sh PREFIX=$out";
|
||||||
sed -i -e 's|char \* extstr = strstr|const char * extstr = strstr|' glide64/Main.cpp
|
|
||||||
sed -i -e 's|char \* extstr = strstr|const char * extstr = strstr|' glide64/Combine.cpp
|
|
||||||
|
|
||||||
# Fix some hardcoded paths
|
|
||||||
sed -i -e "s|/usr/local|$out|g" main/main.c
|
|
||||||
|
|
||||||
# Remove PATH environment variable from install script
|
|
||||||
sed -i -e "s|export PATH=|#export PATH=|" ./install.sh
|
|
||||||
'';
|
|
||||||
|
|
||||||
buildPhase = "make all";
|
|
||||||
installPhase = "PREFIX=$out make install";
|
|
||||||
|
|
||||||
meta = {
|
meta = {
|
||||||
description = "A Nintendo 64 Emulator";
|
description = "A Nintendo 64 Emulator";
|
||||||
|
|
28
pkgs/misc/emulators/wxmupen64plus/default.nix
Normal file
28
pkgs/misc/emulators/wxmupen64plus/default.nix
Normal file
|
@ -0,0 +1,28 @@
|
||||||
|
{stdenv, fetchurl, python, wxGTK29, mupen64plus, SDL, libX11, mesa}:
|
||||||
|
|
||||||
|
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 mesa ];
|
||||||
|
|
||||||
|
configurePhase = ''
|
||||||
|
tar xf ${mupen64plus.src}
|
||||||
|
APIDIR=$(eval echo `pwd`/mupen64plus*/source/mupen64plus-core/src/api)
|
||||||
|
export CXXFLAGS="-I${libX11}/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 = "GPLv2+";
|
||||||
|
homepage = https://bitbucket.org/auria/wxmupen64plus/wiki/Home;
|
||||||
|
};
|
||||||
|
}
|
|
@ -8876,6 +8876,8 @@ let
|
||||||
|
|
||||||
mupen64plus = callPackage ../misc/emulators/mupen64plus { };
|
mupen64plus = callPackage ../misc/emulators/mupen64plus { };
|
||||||
|
|
||||||
|
wxmupen64plus = callPackage ../misc/emulators/wxmupen64plus { };
|
||||||
|
|
||||||
nix = nixStable;
|
nix = nixStable;
|
||||||
|
|
||||||
nixStable = callPackage ../tools/package-management/nix {
|
nixStable = callPackage ../tools/package-management/nix {
|
||||||
|
|
Loading…
Reference in a new issue