2014-05-17 03:02:22 +00:00
|
|
|
{ stdenv, fetchurl, pkgconfig
|
|
|
|
, libX11, mesa, freeglut
|
2015-06-27 07:17:52 +00:00
|
|
|
, libjack2, libcdio, libsndfile, libsamplerate
|
2014-09-27 20:11:33 +00:00
|
|
|
, SDL, SDL_net, zlib
|
|
|
|
}:
|
2014-05-17 03:02:22 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
|
|
|
|
name = "mednafen-${version}";
|
2015-08-31 11:49:39 +00:00
|
|
|
version = "0.9.38.6";
|
2014-05-17 03:02:22 +00:00
|
|
|
|
|
|
|
src = fetchurl {
|
2015-08-31 11:49:39 +00:00
|
|
|
url = "http://mednafen.fobby.net/releases/files/${name}.tar.bz2";
|
|
|
|
sha256 = "0ivy0vqy1cjd5namn4bdm9ambay6rdccjl9x5418mjyqdhydlq4l";
|
2014-05-17 03:02:22 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
buildInputs = with stdenv.lib;
|
2015-06-27 07:17:52 +00:00
|
|
|
[ pkgconfig libX11 mesa freeglut libjack2 libcdio libsndfile libsamplerate SDL SDL_net zlib ];
|
2014-05-17 03:02:22 +00:00
|
|
|
|
|
|
|
|
|
|
|
# Install docs
|
|
|
|
postInstall = ''
|
|
|
|
mkdir -p $out/share/doc/$name
|
|
|
|
cd Documentation
|
|
|
|
install -m 644 -t $out/share/doc/$name *.css *.def *.html *.php *.png *.txt
|
|
|
|
'';
|
|
|
|
|
2014-09-10 18:59:54 +00:00
|
|
|
meta = with stdenv.lib; {
|
2014-05-17 03:02:22 +00:00
|
|
|
description = "A portable, CLI-driven, SDL+OpenGL-based, multi-system emulator";
|
|
|
|
homepage = http://mednafen.sourceforge.net/;
|
2014-09-10 18:59:54 +00:00
|
|
|
license = licenses.gpl2;
|
|
|
|
maintainers = [ maintainers.AndersonTorres ];
|
|
|
|
platforms = platforms.linux;
|
2014-05-17 03:02:22 +00:00
|
|
|
};
|
|
|
|
}
|