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