mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-02-20 02:55:39 +00:00
Merge pull request #29150 from Lassulus/mupen64-update
mupen64plus: 1.5 -> 2.5
This commit is contained in:
commit
ee9b549afe
@ -1,35 +1,27 @@
|
|||||||
{stdenv, fetchurl, which, pkgconfig, SDL, gtk2, mesa, SDL_ttf}:
|
{stdenv, lib, fetchurl, boost, dash, freetype, libpng, pkgconfig, SDL, which, zlib }:
|
||||||
|
|
||||||
|
stdenv.mkDerivation rec {
|
||||||
|
name = "mupen64plus-${version}";
|
||||||
|
version = "2.5";
|
||||||
|
|
||||||
stdenv.mkDerivation {
|
|
||||||
name = "mupen64plus-1.5";
|
|
||||||
src = fetchurl {
|
src = fetchurl {
|
||||||
url = http://mupen64plus.googlecode.com/files/Mupen64Plus-1-5-src.tar.gz;
|
url = "https://github.com/mupen64plus/mupen64plus-core/releases/download/${version}/mupen64plus-bundle-src-${version}.tar.gz";
|
||||||
sha256 = "0gygfgyr2sg4yx77ijk133d1ra0v1yxi4xjxrg6kp3zdjmhdmcjq";
|
sha256 = "0rmsvfn4zfvbhz6gf1xkb7hnwflv6sbklwjz2xk4dlpj4vcbjxcw";
|
||||||
};
|
};
|
||||||
|
|
||||||
buildInputs = [ which pkgconfig SDL gtk2 mesa SDL_ttf ];
|
buildInputs = [ boost dash freetype libpng pkgconfig SDL which zlib ];
|
||||||
|
|
||||||
hardeningDisable = [ "format" ];
|
buildPhase = ''
|
||||||
|
dash m64p_build.sh PREFIX="$out" COREDIR="$out/lib/" PLUGINDIR="$out/lib/mupen64plus" SHAREDIR="$out/share/mupen64plus"
|
||||||
preConfigure = ''
|
'';
|
||||||
# Some C++ incompatibility fixes
|
installPhase = ''
|
||||||
sed -i -e 's|char \* extstr = strstr|const char * extstr = strstr|' glide64/Main.cpp
|
dash m64p_install.sh DESTDIR="$out" PREFIX=""
|
||||||
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";
|
||||||
license = stdenv.lib.licenses.gpl2Plus;
|
license = stdenv.lib.licenses.gpl2Plus;
|
||||||
homepage = http://code.google.com/p/mupen64plus;
|
homepage = http://www.mupen64plus.org/;
|
||||||
maintainers = [ stdenv.lib.maintainers.sander ];
|
maintainers = [ stdenv.lib.maintainers.sander ];
|
||||||
platforms = stdenv.lib.platforms.linux;
|
platforms = stdenv.lib.platforms.linux;
|
||||||
};
|
};
|
||||||
|
@ -18850,9 +18850,7 @@ with pkgs;
|
|||||||
|
|
||||||
mongoc = callPackage ../development/libraries/mongoc { };
|
mongoc = callPackage ../development/libraries/mongoc { };
|
||||||
|
|
||||||
mupen64plus = callPackage ../misc/emulators/mupen64plus {
|
mupen64plus = callPackage ../misc/emulators/mupen64plus { };
|
||||||
stdenv = overrideCC stdenv gcc49;
|
|
||||||
};
|
|
||||||
|
|
||||||
mynewt-newt = callPackage ../tools/package-management/mynewt-newt { };
|
mynewt-newt = callPackage ../tools/package-management/mynewt-newt { };
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user