2014-05-17 05:02:22 +02:00
|
|
|
{ stdenv, fetchurl, pkgconfig
|
|
|
|
, libX11, mesa, freeglut
|
2015-06-27 09:17:52 +02:00
|
|
|
, libjack2, libcdio, libsndfile, libsamplerate
|
2014-09-27 22:11:33 +02:00
|
|
|
, SDL, SDL_net, zlib
|
|
|
|
}:
|
2014-05-17 05:02:22 +02:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
|
|
|
|
name = "mednafen-${version}";
|
2015-07-15 13:08:46 +02:00
|
|
|
version = "0.9.38.5";
|
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";
|
2015-07-15 13:08:46 +02:00
|
|
|
sha256 = "1s1qwwlhkxr0vhzvlc1m0ib9lj7cws3cldm2mbjz4b421nxfdi8h";
|
2014-05-17 05:02:22 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
buildInputs = with stdenv.lib;
|
2015-06-27 09:17:52 +02:00
|
|
|
[ pkgconfig libX11 mesa freeglut libjack2 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
|
|
|
|
'';
|
|
|
|
|
2014-09-10 20:59:54 +02:00
|
|
|
meta = with stdenv.lib; {
|
2014-05-17 05:02:22 +02:00
|
|
|
description = "A portable, CLI-driven, SDL+OpenGL-based, multi-system emulator";
|
|
|
|
homepage = http://mednafen.sourceforge.net/;
|
2014-09-10 20:59:54 +02:00
|
|
|
license = licenses.gpl2;
|
|
|
|
maintainers = [ maintainers.AndersonTorres ];
|
|
|
|
platforms = platforms.linux;
|
2014-05-17 05:02:22 +02:00
|
|
|
};
|
|
|
|
}
|