2017-09-09 18:28:25 +02:00
|
|
|
{stdenv, lib, fetchurl, boost, dash, freetype, libpng, pkgconfig, SDL, which, zlib }:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
name = "mupen64plus-${version}";
|
|
|
|
version = "2.5";
|
2011-07-22 16:03:23 +02:00
|
|
|
|
|
|
|
src = fetchurl {
|
2017-09-09 18:28:25 +02:00
|
|
|
url = "https://github.com/mupen64plus/mupen64plus-core/releases/download/${version}/mupen64plus-bundle-src-${version}.tar.gz";
|
|
|
|
sha256 = "0rmsvfn4zfvbhz6gf1xkb7hnwflv6sbklwjz2xk4dlpj4vcbjxcw";
|
2011-07-22 16:03:23 +02:00
|
|
|
};
|
2016-02-12 13:50:49 +01:00
|
|
|
|
2017-09-05 23:26:13 +02:00
|
|
|
nativeBuildInputs = [ pkgconfig ];
|
|
|
|
buildInputs = [ boost dash freetype libpng SDL which zlib ];
|
2011-07-22 16:03:23 +02:00
|
|
|
|
2017-09-09 18:28:25 +02:00
|
|
|
buildPhase = ''
|
|
|
|
dash m64p_build.sh PREFIX="$out" COREDIR="$out/lib/" PLUGINDIR="$out/lib/mupen64plus" SHAREDIR="$out/share/mupen64plus"
|
|
|
|
'';
|
|
|
|
installPhase = ''
|
|
|
|
dash m64p_install.sh DESTDIR="$out" PREFIX=""
|
2011-07-22 16:03:23 +02:00
|
|
|
'';
|
2016-02-12 13:50:49 +01:00
|
|
|
|
2011-07-22 21:25:31 +02:00
|
|
|
meta = {
|
|
|
|
description = "A Nintendo 64 Emulator";
|
2014-06-19 06:19:00 +02:00
|
|
|
license = stdenv.lib.licenses.gpl2Plus;
|
2017-09-09 18:28:25 +02:00
|
|
|
homepage = http://www.mupen64plus.org/;
|
2011-07-22 21:25:31 +02:00
|
|
|
maintainers = [ stdenv.lib.maintainers.sander ];
|
2016-08-02 19:50:55 +02:00
|
|
|
platforms = stdenv.lib.platforms.linux;
|
2011-07-22 21:25:31 +02:00
|
|
|
};
|
2011-07-22 16:03:23 +02:00
|
|
|
}
|