diff options
author | Lluís Batlle i Rossell <viric@viric.name> | 2013-03-28 18:16:40 +0100 |
---|---|---|
committer | Lluís Batlle i Rossell <viric@viric.name> | 2013-03-28 18:16:40 +0100 |
commit | 5f677039c77a4d9c6fcbe9b99980eab34fae65f3 (patch) | |
tree | a97e6497208151f7ff45a0de408aba920fa58ed3 /pkgs/misc/emulators | |
parent | 3abc3f4a6899e5cbb013a18e81ed9360910d0332 (diff) | |
download | nixlib-5f677039c77a4d9c6fcbe9b99980eab34fae65f3.tar nixlib-5f677039c77a4d9c6fcbe9b99980eab34fae65f3.tar.gz nixlib-5f677039c77a4d9c6fcbe9b99980eab34fae65f3.tar.bz2 nixlib-5f677039c77a4d9c6fcbe9b99980eab34fae65f3.tar.lz nixlib-5f677039c77a4d9c6fcbe9b99980eab34fae65f3.tar.xz nixlib-5f677039c77a4d9c6fcbe9b99980eab34fae65f3.tar.zst nixlib-5f677039c77a4d9c6fcbe9b99980eab34fae65f3.zip |
Adding back the 1.5 expression of mupen64plus
It has a GUI, for example.
Diffstat (limited to 'pkgs/misc/emulators')
-rw-r--r-- | pkgs/misc/emulators/mupen64plus/1.5.nix | 33 | ||||
-rw-r--r-- | pkgs/misc/emulators/mupen64plus/default.nix | 22 |
2 files changed, 50 insertions, 5 deletions
diff --git a/pkgs/misc/emulators/mupen64plus/1.5.nix b/pkgs/misc/emulators/mupen64plus/1.5.nix new file mode 100644 index 000000000000..d67121fe430a --- /dev/null +++ b/pkgs/misc/emulators/mupen64plus/1.5.nix @@ -0,0 +1,33 @@ +{stdenv, fetchurl, which, pkgconfig, SDL, gtk, mesa, SDL_ttf}: + +stdenv.mkDerivation { + name = "mupen64plus-1.5"; + src = fetchurl { + url = http://mupen64plus.googlecode.com/files/Mupen64Plus-1-5-src.tar.gz; + sha256 = "0gygfgyr2sg4yx77ijk133d1ra0v1yxi4xjxrg6kp3zdjmhdmcjq"; + }; + + buildInputs = [ which pkgconfig SDL gtk mesa SDL_ttf ]; + + 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"; + + meta = { + description = "A Nintendo 64 Emulator"; + license = "GPLv2+"; + homepage = http://code.google.com/p/mupen64plus; + maintainers = [ stdenv.lib.maintainers.sander ]; + }; +} diff --git a/pkgs/misc/emulators/mupen64plus/default.nix b/pkgs/misc/emulators/mupen64plus/default.nix index 0f59da272ff9..d67121fe430a 100644 --- a/pkgs/misc/emulators/mupen64plus/default.nix +++ b/pkgs/misc/emulators/mupen64plus/default.nix @@ -1,16 +1,28 @@ {stdenv, fetchurl, which, pkgconfig, SDL, gtk, mesa, SDL_ttf}: stdenv.mkDerivation { - name = "mupen64plus-1.99.5"; + name = "mupen64plus-1.5"; src = fetchurl { - url = https://mupen64plus.googlecode.com/files/mupen64plus-bundle-src-1.99.5.tar.gz; - sha1 = "ca80ae446c9591e272e3ec93f0a2a8b01cfcd34e"; + url = http://mupen64plus.googlecode.com/files/Mupen64Plus-1-5-src.tar.gz; + sha256 = "0gygfgyr2sg4yx77ijk133d1ra0v1yxi4xjxrg6kp3zdjmhdmcjq"; }; buildInputs = [ which pkgconfig SDL gtk mesa SDL_ttf ]; - buildPhase = "./m64p_build.sh PREFIX=$out COREDIR=$out/lib/ PLUGINDIR=$out/lib/mupen64plus/ SHAREDIR=$out/share/mupen64plus/"; - installPhase = "./m64p_install.sh PREFIX=$out"; + 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"; meta = { description = "A Nintendo 64 Emulator"; |