2019-11-10 16:44:34 +00:00
|
|
|
{ stdenv, fetchurl, pkgconfig, freeglut, libGLU, libGL, libcdio, libjack2
|
2017-09-27 17:10:37 +01:00
|
|
|
, libsamplerate, libsndfile, libX11, SDL, SDL_net, zlib }:
|
2014-05-17 04:02:22 +01:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2019-08-15 13:41:18 +01:00
|
|
|
pname = "mednafen";
|
2017-09-27 17:10:37 +01:00
|
|
|
version = "0.9.48";
|
2014-05-17 04:02:22 +01:00
|
|
|
|
|
|
|
src = fetchurl {
|
2019-08-15 13:41:18 +01:00
|
|
|
url = "https://mednafen.github.io/releases/files/${pname}-${version}.tar.xz";
|
2017-09-27 17:10:37 +01:00
|
|
|
sha256 = "00i12mywhp43274aq466fwavglk5b7d8z8bfdna12ra9iy1hrk6k";
|
2014-05-17 04:02:22 +01:00
|
|
|
};
|
|
|
|
|
2017-09-27 17:10:37 +01:00
|
|
|
nativeBuildInputs = [ pkgconfig ];
|
|
|
|
|
|
|
|
buildInputs = [
|
|
|
|
freeglut
|
2019-11-10 16:44:34 +00:00
|
|
|
libGLU libGL
|
2017-09-27 17:10:37 +01:00
|
|
|
libcdio
|
|
|
|
libjack2
|
|
|
|
libsamplerate
|
|
|
|
libsndfile
|
|
|
|
libX11
|
|
|
|
SDL
|
|
|
|
SDL_net
|
|
|
|
zlib
|
|
|
|
];
|
|
|
|
|
|
|
|
hardeningDisable = [ "pic" ];
|
2014-05-17 04:02:22 +01:00
|
|
|
|
|
|
|
postInstall = ''
|
2017-09-27 17:10:37 +01:00
|
|
|
mkdir -p $out/share/doc
|
|
|
|
mv Documentation $out/share/doc/mednafen
|
2014-05-17 04:02:22 +01:00
|
|
|
'';
|
|
|
|
|
2014-09-10 19:59:54 +01:00
|
|
|
meta = with stdenv.lib; {
|
2014-05-17 04:02:22 +01:00
|
|
|
description = "A portable, CLI-driven, SDL+OpenGL-based, multi-system emulator";
|
2017-09-27 17:10:37 +01:00
|
|
|
homepage = https://mednafen.github.io/;
|
2014-09-10 19:59:54 +01:00
|
|
|
license = licenses.gpl2;
|
2017-09-27 17:10:37 +01:00
|
|
|
maintainers = with maintainers; [ AndersonTorres ];
|
2014-09-10 19:59:54 +01:00
|
|
|
platforms = platforms.linux;
|
2014-05-17 04:02:22 +01:00
|
|
|
};
|
|
|
|
}
|