2014-05-17 04:02:22 +01:00
|
|
|
{ stdenv, fetchurl, pkgconfig
|
|
|
|
, libX11, mesa, freeglut
|
2014-07-31 11:47:17 +01:00
|
|
|
, jack2, libcdio, libsndfile, libsamplerate
|
2014-05-17 04:02:22 +01:00
|
|
|
, SDL, SDL_net, zlib
|
|
|
|
}:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
|
|
|
|
name = "mednafen-${version}";
|
|
|
|
version = "0.9.34.1";
|
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "http://sourceforge.net/projects/mednafen/files/Mednafen/${version}/${name}.tar.bz2";
|
|
|
|
sha256 = "1d783ws5rpx6r8qk1l9nksx3kahbalis606psk4067bvfzy7kjb9";
|
|
|
|
};
|
|
|
|
|
|
|
|
buildInputs = with stdenv.lib;
|
2014-07-31 11:47:17 +01:00
|
|
|
[ libX11 mesa freeglut jack2 libcdio libsndfile libsamplerate SDL SDL_net zlib ];
|
2014-05-17 04:02:22 +01:00
|
|
|
|
|
|
|
nativeBuildInputs = [ pkgconfig ];
|
|
|
|
|
|
|
|
# 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;
|
|
|
|
};
|
|
|
|
}
|