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