git.iko.soy/typeable/nixpkgs
on master help sign in
mupen64plus: 1.5 -> 2.5
commitf068f3f209a25a64a1932cccd8bfb5753dcf5ec6 authorlassulus <lassulus@lassul.us> dateSat 9 Sep 2017, 18:28 (9 years ago) parent6589ee8
2 files changed+15−25
pkgs/misc/emulators/mupen64plus/default.nix+14−22 pkgs/top-level/all-packages.nix+1−3
pkgs/misc/emulators/mupen64plus/default.nix+14−22
@@ -1,35 +1,27 @@
1−{stdenv, fetchurl, which, pkgconfig, SDL, gtk2, mesa, SDL_ttf}:
1+{stdenv, lib, fetchurl, boost, dash, freetype, libpng, pkgconfig, SDL, which, zlib }:
2+
3+stdenv.mkDerivation rec {
4+ name = "mupen64plus-${version}";
5+ version = "2.5";
26
3−stdenv.mkDerivation {
4− name = "mupen64plus-1.5";
57 src = fetchurl {
6− url = http://mupen64plus.googlecode.com/files/Mupen64Plus-1-5-src.tar.gz;
7− sha256 = "0gygfgyr2sg4yx77ijk133d1ra0v1yxi4xjxrg6kp3zdjmhdmcjq";
8+ url = "https://github.com/mupen64plus/mupen64plus-core/releases/download/${version}/mupen64plus-bundle-src-${version}.tar.gz";
9+ sha256 = "0rmsvfn4zfvbhz6gf1xkb7hnwflv6sbklwjz2xk4dlpj4vcbjxcw";
810 };
911
10− buildInputs = [ which pkgconfig SDL gtk2 mesa SDL_ttf ];
11−
12− hardeningDisable = [ "format" ];
13−
14− preConfigure = ''
15− # Some C++ incompatibility fixes
16− sed -i -e 's|char \* extstr = strstr|const char * extstr = strstr|' glide64/Main.cpp
17− sed -i -e 's|char \* extstr = strstr|const char * extstr = strstr|' glide64/Combine.cpp
12+ buildInputs = [ boost dash freetype libpng pkgconfig SDL which zlib ];
1813
19− # Fix some hardcoded paths
20− sed -i -e "s|/usr/local|$out|g" main/main.c
21−
22− # Remove PATH environment variable from install script
23− sed -i -e "s|export PATH=|#export PATH=|" ./install.sh
14+ buildPhase = ''
15+ dash m64p_build.sh PREFIX="$out" COREDIR="$out/lib/" PLUGINDIR="$out/lib/mupen64plus" SHAREDIR="$out/share/mupen64plus"
16+ '';
17+ installPhase = ''
18+ dash m64p_install.sh DESTDIR="$out" PREFIX=""
2419 '';
25−
26− buildPhase = "make all";
27− installPhase = "PREFIX=$out make install";
2820
2921 meta = {
3022 description = "A Nintendo 64 Emulator";
3123 license = stdenv.lib.licenses.gpl2Plus;
32− homepage = http://code.google.com/p/mupen64plus;
24+ homepage = http://www.mupen64plus.org/;
3325 maintainers = [ stdenv.lib.maintainers.sander ];
3426 platforms = stdenv.lib.platforms.linux;
3527 };
pkgs/top-level/all-packages.nix+1−3
@@ -18844,9 +18844,7 @@ with pkgs;
1884418844
1884518845 mongoc = callPackage ../development/libraries/mongoc { };
1884618846
18847− mupen64plus = callPackage ../misc/emulators/mupen64plus {
18848− stdenv = overrideCC stdenv gcc49;
18849− };
18847+ mupen64plus = callPackage ../misc/emulators/mupen64plus { };
1885018848
1885118849 mynewt-newt = callPackage ../tools/package-management/mynewt-newt { };
1885218850