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-09-27 21:11:33 +01:00
|
|
|
, SDL, SDL_net, zlib
|
|
|
|
}:
|
2014-05-17 04:02:22 +01:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
|
|
|
|
name = "mednafen-${version}";
|
2014-09-27 21:11:33 +01:00
|
|
|
version = "0.9.36.4";
|
2014-05-17 04:02:22 +01:00
|
|
|
|
|
|
|
src = fetchurl {
|
2014-08-14 15:18:55 +01:00
|
|
|
url = "http://downloads.sourceforge.net/project/mednafen/Mednafen/${version}/${name}.tar.bz2";
|
2014-09-27 21:11:33 +01:00
|
|
|
sha256 = "0s6dhdar6y64fah2ij98a9gskm0rzcbqdbksicnba8cakc87nsfy";
|
2014-05-17 04:02:22 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
buildInputs = with stdenv.lib;
|
2014-08-14 15:18:55 +01:00
|
|
|
[ pkgconfig libX11 mesa freeglut jack2 libcdio libsndfile libsamplerate SDL SDL_net zlib ];
|
2014-05-17 04:02:22 +01: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 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";
|
|
|
|
homepage = http://mednafen.sourceforge.net/;
|
2014-09-10 19:59:54 +01:00
|
|
|
license = licenses.gpl2;
|
|
|
|
maintainers = [ maintainers.AndersonTorres ];
|
|
|
|
platforms = platforms.linux;
|
2014-05-17 04:02:22 +01:00
|
|
|
};
|
|
|
|
}
|