2021-08-05 21:33:18 +00:00
|
|
|
{ lib
|
|
|
|
, stdenv
|
|
|
|
, fetchFromGitHub
|
|
|
|
, pkg-config
|
|
|
|
, SDL2
|
|
|
|
, SDL2_image
|
|
|
|
, SDL2_ttf
|
|
|
|
, alsa-lib
|
|
|
|
, freetype
|
|
|
|
, glew
|
|
|
|
, libGL
|
|
|
|
, libogg
|
|
|
|
, libpng
|
|
|
|
, libtheora
|
|
|
|
, libvorbis
|
2020-04-24 23:36:52 +00:00
|
|
|
, python
|
2021-08-05 21:33:18 +00:00
|
|
|
, tcl
|
|
|
|
, zlib
|
2020-04-24 23:36:52 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "openmsx";
|
2021-08-05 21:33:18 +00:00
|
|
|
version = "17.0";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "openMSX";
|
|
|
|
repo = "openMSX";
|
2020-09-25 04:45:31 +00:00
|
|
|
rev = "RELEASE_${builtins.replaceStrings ["."] ["_"] version}";
|
2021-08-05 21:33:18 +00:00
|
|
|
sha256 = "sha256-9PdUNahJZ2O6ASkzLW/uudP3hiIzTDpxzFy6Pjb8JiU=";
|
2020-04-24 23:36:52 +00:00
|
|
|
fetchSubmodules = true;
|
|
|
|
};
|
|
|
|
|
2021-08-05 21:33:18 +00:00
|
|
|
nativeBuildInputs = [
|
|
|
|
pkg-config
|
|
|
|
python
|
|
|
|
];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2021-08-05 21:33:18 +00:00
|
|
|
buildInputs = [
|
|
|
|
SDL2
|
|
|
|
SDL2_image
|
|
|
|
SDL2_ttf
|
|
|
|
alsa-lib
|
|
|
|
freetype
|
|
|
|
glew
|
|
|
|
libGL
|
|
|
|
libogg
|
|
|
|
libpng
|
|
|
|
libtheora
|
|
|
|
libvorbis
|
|
|
|
tcl
|
|
|
|
zlib
|
|
|
|
];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
postPatch = ''
|
2020-09-25 04:45:31 +00:00
|
|
|
cp ${./custom-nix.mk} build/custom.mk
|
2020-04-24 23:36:52 +00:00
|
|
|
'';
|
|
|
|
|
|
|
|
dontAddPrefix = true;
|
|
|
|
|
2021-08-05 21:33:18 +00:00
|
|
|
# Many thanks @mthuurne from OpenMSX project for providing support to
|
|
|
|
# Nixpkgs! :)
|
2020-04-24 23:36:52 +00:00
|
|
|
TCL_CONFIG="${tcl}/lib/";
|
|
|
|
|
2021-08-05 21:33:18 +00:00
|
|
|
meta = with lib; {
|
|
|
|
homepage = "https://openmsx.org";
|
2020-09-25 04:45:31 +00:00
|
|
|
description = "The MSX emulator that aims for perfection";
|
2020-04-24 23:36:52 +00:00
|
|
|
longDescription = ''
|
|
|
|
OpenMSX is an emulator for the MSX home computer system. Its goal is
|
|
|
|
to emulate all aspects of the MSX with 100% accuracy.
|
|
|
|
'';
|
2021-08-05 21:33:18 +00:00
|
|
|
license = with licenses; [ bsd2 boost gpl2Plus ];
|
2020-04-24 23:36:52 +00:00
|
|
|
maintainers = with maintainers; [ AndersonTorres ];
|
|
|
|
platforms = platforms.unix;
|
|
|
|
};
|
|
|
|
}
|