2014-05-17 05:02:22 +02:00
|
|
|
{ stdenv, fetchurl, pkgconfig
|
|
|
|
, libX11, mesa, freeglut
|
2014-07-31 12:47:17 +02:00
|
|
|
, jack2, libcdio, libsndfile, libsamplerate
|
2014-05-17 05:02:22 +02:00
|
|
|
, SDL, SDL_net, zlib
|
|
|
|
}:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
|
|
|
|
name = "mednafen-${version}";
|
2014-08-14 16:18:55 +02:00
|
|
|
version = "0.9.36.3";
|
2014-05-17 05:02:22 +02:00
|
|
|
|
|
|
|
src = fetchurl {
|
2014-08-14 16:18:55 +02:00
|
|
|
url = "http://downloads.sourceforge.net/project/mednafen/Mednafen/${version}/${name}.tar.bz2";
|
|
|
|
sha256 = "00byql2p28l4476mvzmv5ysclb6yv9f4qrf6vz0x7ii648rp97in";
|
2014-05-17 05:02:22 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
buildInputs = with stdenv.lib;
|
2014-08-14 16:18:55 +02:00
|
|
|
[ pkgconfig libX11 mesa freeglut jack2 libcdio libsndfile libsamplerate SDL SDL_net zlib ];
|
2014-05-17 05:02:22 +02: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
|
|
|
|
'';
|
|
|
|
|
|
|
|
meta = {
|
|
|
|
description = "A portable, CLI-driven, SDL+OpenGL-based, multi-system emulator";
|
|
|
|
homepage = http://mednafen.sourceforge.net/;
|
|
|
|
license = stdenv.lib.licenses.gpl2;
|
|
|
|
maintainers = [ stdenv.lib.maintainers.AndersonTorres ];
|
|
|
|
platforms = stdenv.lib.platforms.linux;
|
|
|
|
};
|
|
|
|
}
|