2017-09-18 04:18:01 +01:00
|
|
|
{ stdenv, fetchFromGitHub, pkgconfig
|
|
|
|
, python
|
2018-02-24 12:06:44 +00:00
|
|
|
, alsaLib, glew, libGL, libpng
|
2017-09-18 04:18:01 +01:00
|
|
|
, libogg, libtheora, libvorbis
|
|
|
|
, SDL, SDL_image, SDL_ttf
|
|
|
|
, freetype, tcl, zlib
|
|
|
|
}:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
|
2019-08-15 13:41:18 +01:00
|
|
|
pname = "openmsx";
|
2017-09-18 04:18:01 +01:00
|
|
|
version = "git-2017-11-02";
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "openMSX";
|
|
|
|
repo = "openMSX";
|
|
|
|
rev = "eeb74206ae347a3b17e9b99f91f2b4682c5db22c";
|
|
|
|
sha256 = "170amj7k6wjhwx6psbplqljvckvhxxbv3aw72jrdxl1fb8zlnq3s";
|
|
|
|
fetchSubmodules = true;
|
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [ pkgconfig python ];
|
|
|
|
|
2018-02-24 12:06:44 +00:00
|
|
|
buildInputs = [ alsaLib glew libGL libpng
|
2017-09-18 04:18:01 +01: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/";
|
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
|
|
|
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.
|
|
|
|
'';
|
|
|
|
homepage = https://openmsx.org;
|
|
|
|
maintainers = with maintainers; [ AndersonTorres ];
|
|
|
|
platforms = platforms.unix;
|
|
|
|
};
|
|
|
|
}
|