2011-07-22 16:03:23 +02:00
|
|
|
{stdenv, fetchurl, which, pkgconfig, SDL, gtk, mesa, SDL_ttf}:
|
|
|
|
|
|
|
|
stdenv.mkDerivation {
|
2013-03-28 18:16:40 +01:00
|
|
|
name = "mupen64plus-1.5";
|
2011-07-22 16:03:23 +02:00
|
|
|
src = fetchurl {
|
2013-03-28 18:16:40 +01:00
|
|
|
url = http://mupen64plus.googlecode.com/files/Mupen64Plus-1-5-src.tar.gz;
|
|
|
|
sha256 = "0gygfgyr2sg4yx77ijk133d1ra0v1yxi4xjxrg6kp3zdjmhdmcjq";
|
2011-07-22 16:03:23 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
buildInputs = [ which pkgconfig SDL gtk mesa SDL_ttf ];
|
|
|
|
|
2013-03-28 18:16:40 +01:00
|
|
|
preConfigure = ''
|
|
|
|
# Some C++ incompatibility fixes
|
|
|
|
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";
|
2011-07-22 21:25:31 +02:00
|
|
|
|
|
|
|
meta = {
|
|
|
|
description = "A Nintendo 64 Emulator";
|
|
|
|
license = "GPLv2+";
|
|
|
|
homepage = http://code.google.com/p/mupen64plus;
|
|
|
|
maintainers = [ stdenv.lib.maintainers.sander ];
|
|
|
|
};
|
2011-07-22 16:03:23 +02:00
|
|
|
}
|