2020-01-06 11:13:59 +01:00
|
|
|
{stdenv, fetchurl, boost, dash, freetype, libpng, pkgconfig, SDL, which, zlib, nasm }:
|
2017-09-09 18:28:25 +02:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2019-08-15 14:41:18 +02:00
|
|
|
pname = "mupen64plus";
|
2020-01-06 11:13:59 +01:00
|
|
|
version = "2.5.9";
|
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";
|
2020-01-06 11:13:59 +01:00
|
|
|
sha256 = "1a21n4gqdvag6krwcjm5bnyw5phrlxw6m0mk73jy53iq03f3s96m";
|
2011-07-22 16:03:23 +02:00
|
|
|
};
|
2016-02-12 13:50:49 +01:00
|
|
|
|
2020-01-06 11:13:59 +01:00
|
|
|
nativeBuildInputs = [ pkgconfig nasm ];
|
2017-09-05 23:26:13 +02:00
|
|
|
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
|
|
|
|
2020-01-06 11:13:59 +01:00
|
|
|
meta = with stdenv.lib; {
|
2011-07-22 21:25:31 +02:00
|
|
|
description = "A Nintendo 64 Emulator";
|
2020-01-06 11:13:59 +01:00
|
|
|
license = licenses.gpl2Plus;
|
2020-04-01 03:11:51 +02:00
|
|
|
homepage = "http://www.mupen64plus.org/";
|
2020-01-06 11:13:59 +01:00
|
|
|
maintainers = [ maintainers.sander ];
|
|
|
|
platforms = [ "x86_64-linux" ];
|
2011-07-22 21:25:31 +02:00
|
|
|
};
|
2011-07-22 16:03:23 +02:00
|
|
|
}
|