2021-08-01 05:47:45 +01:00
|
|
|
{ lib
|
|
|
|
, stdenv
|
|
|
|
, fetchFromGitHub
|
|
|
|
, pkg-config
|
|
|
|
, SDL2
|
|
|
|
, SDL2_image
|
|
|
|
, SDL2_ttf
|
|
|
|
, alsa-lib
|
|
|
|
, freetype
|
|
|
|
, glew
|
|
|
|
, libGL
|
|
|
|
, libogg
|
|
|
|
, libpng
|
|
|
|
, libtheora
|
|
|
|
, libvorbis
|
2022-07-30 02:07:58 +01:00
|
|
|
, python3
|
2021-08-01 05:47:45 +01:00
|
|
|
, tcl
|
|
|
|
, zlib
|
2017-09-18 04:18:01 +01:00
|
|
|
}:
|
|
|
|
|
2022-07-30 02:07:58 +01:00
|
|
|
stdenv.mkDerivation (finalAttrs: {
|
2019-08-15 13:41:18 +01:00
|
|
|
pname = "openmsx";
|
2022-07-30 02:07:58 +01:00
|
|
|
version = "18.0";
|
2017-09-18 04:18:01 +01:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "openMSX";
|
|
|
|
repo = "openMSX";
|
2022-07-30 02:07:58 +01:00
|
|
|
rev = "RELEASE_${builtins.replaceStrings ["."] ["_"] finalAttrs.version}";
|
|
|
|
sha256 = "sha256-4V2B+OQbPVRmkRuqfeqyd+7pz9Z1YISjI79WqZS0Qhc=";
|
2017-09-18 04:18:01 +01:00
|
|
|
fetchSubmodules = true;
|
|
|
|
};
|
|
|
|
|
2021-08-01 05:47:45 +01:00
|
|
|
nativeBuildInputs = [
|
|
|
|
pkg-config
|
2022-07-30 02:07:58 +01:00
|
|
|
python3
|
2021-08-01 05:47:45 +01:00
|
|
|
];
|
2017-09-18 04:18:01 +01:00
|
|
|
|
2021-08-01 05:47:45 +01:00
|
|
|
buildInputs = [
|
|
|
|
SDL2
|
|
|
|
SDL2_image
|
|
|
|
SDL2_ttf
|
|
|
|
alsa-lib
|
|
|
|
freetype
|
|
|
|
glew
|
|
|
|
libGL
|
|
|
|
libogg
|
|
|
|
libpng
|
|
|
|
libtheora
|
|
|
|
libvorbis
|
|
|
|
tcl
|
|
|
|
zlib
|
|
|
|
];
|
2017-09-18 04:18:01 +01:00
|
|
|
|
|
|
|
postPatch = ''
|
2020-09-11 18:41:55 +01:00
|
|
|
cp ${./custom-nix.mk} build/custom.mk
|
2017-09-18 04:18:01 +01:00
|
|
|
'';
|
|
|
|
|
|
|
|
dontAddPrefix = true;
|
|
|
|
|
2021-08-01 05:47:45 +01:00
|
|
|
# Many thanks @mthuurne from OpenMSX project for providing support to
|
|
|
|
# Nixpkgs! :)
|
2017-09-18 04:18:01 +01:00
|
|
|
TCL_CONFIG="${tcl}/lib/";
|
|
|
|
|
2021-08-01 05:47:45 +01:00
|
|
|
meta = with lib; {
|
|
|
|
homepage = "https://openmsx.org";
|
2020-09-11 18:41:55 +01:00
|
|
|
description = "The MSX emulator that aims for perfection";
|
2017-09-18 04:18:01 +01: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-01 05:47:45 +01:00
|
|
|
license = with licenses; [ bsd2 boost gpl2Plus ];
|
2017-09-18 04:18:01 +01:00
|
|
|
maintainers = with maintainers; [ AndersonTorres ];
|
|
|
|
platforms = platforms.unix;
|
|
|
|
};
|
2022-07-30 02:07:58 +01:00
|
|
|
})
|