2017-09-18 05:18:01 +02:00
|
|
|
{ stdenv, fetchFromGitHub, pkgconfig
|
|
|
|
, python
|
2018-02-24 13:06:44 +01:00
|
|
|
, alsaLib, glew, libGL, libpng
|
2017-09-18 05:18:01 +02:00
|
|
|
, libogg, libtheora, libvorbis
|
|
|
|
, SDL, SDL_image, SDL_ttf
|
|
|
|
, freetype, tcl, zlib
|
|
|
|
}:
|
|
|
|
|
2020-04-05 00:29:15 +02:00
|
|
|
with stdenv.lib;
|
|
|
|
stdenv.mkDerivation rec {
|
2017-09-18 05:18:01 +02:00
|
|
|
|
2019-08-15 14:41:18 +02:00
|
|
|
pname = "openmsx";
|
2020-04-05 00:29:15 +02:00
|
|
|
version = "0.15.0";
|
2017-09-18 05:18:01 +02:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "openMSX";
|
|
|
|
repo = "openMSX";
|
2020-04-05 00:29:15 +02:00
|
|
|
rev = "RELEASE_0_15_0";
|
|
|
|
sha256 = "1lv5kdw0812mkf7k20z2djzk0pbs792xq2mibbnz9rfjf02whi7l";
|
2017-09-18 05:18:01 +02:00
|
|
|
fetchSubmodules = true;
|
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [ pkgconfig python ];
|
|
|
|
|
2018-02-24 13:06:44 +01:00
|
|
|
buildInputs = [ alsaLib glew libGL libpng
|
2017-09-18 05:18:01 +02:00
|
|
|
libogg libtheora libvorbis freetype
|
|
|
|
SDL SDL_image SDL_ttf tcl zlib ];
|
|
|
|
|
|
|
|
postPatch = ''
|
|
|
|
cp ${./custom-nixos.mk} build/custom.mk
|
|
|
|
'';
|
|
|
|
|
|
|
|
dontAddPrefix = true;
|
|
|
|
|
|
|
|
# Many thanks @mthuurne from OpenMSX project
|
|
|
|
# for providing support to Nixpkgs :)
|
|
|
|
TCL_CONFIG="${tcl}/lib/";
|
|
|
|
|
2020-04-05 00:29:15 +02:00
|
|
|
meta = {
|
2017-09-18 05:18:01 +02:00
|
|
|
description = "A MSX emulator";
|
|
|
|
longDescription = ''
|
|
|
|
OpenMSX is an emulator for the MSX home computer system. Its goal is
|
|
|
|
to emulate all aspects of the MSX with 100% accuracy.
|
|
|
|
'';
|
2020-04-05 00:29:15 +02:00
|
|
|
homepage = "https://openmsx.org";
|
2017-09-18 05:18:01 +02:00
|
|
|
maintainers = with maintainers; [ AndersonTorres ];
|
|
|
|
platforms = platforms.unix;
|
|
|
|
};
|
|
|
|
}
|