2021-01-17 03:30:45 +01:00
|
|
|
{ lib, stdenv, fetchFromGitHub, pkg-config
|
2017-09-18 05:18:01 +02:00
|
|
|
, python
|
2021-06-10 04:57:09 +02:00
|
|
|
, alsa-lib, glew, libGL, libpng
|
2017-09-18 05:18:01 +02:00
|
|
|
, libogg, libtheora, libvorbis
|
2020-09-11 19:41:55 +02:00
|
|
|
, SDL2, SDL2_image, SDL2_ttf
|
2017-09-18 05:18:01 +02:00
|
|
|
, freetype, tcl, zlib
|
|
|
|
}:
|
|
|
|
|
2020-04-05 00:29:15 +02:00
|
|
|
stdenv.mkDerivation rec {
|
2019-08-15 14:41:18 +02:00
|
|
|
pname = "openmsx";
|
2020-09-11 19:41:55 +02:00
|
|
|
version = "16.0";
|
2017-09-18 05:18:01 +02:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "openMSX";
|
|
|
|
repo = "openMSX";
|
2020-09-11 19:41:55 +02:00
|
|
|
rev = "RELEASE_${builtins.replaceStrings ["."] ["_"] version}";
|
|
|
|
sha256 = "04sphn9ph378r0qv881riv90cgz58650jcqcwmi1mv6gbcb3img5";
|
2017-09-18 05:18:01 +02:00
|
|
|
fetchSubmodules = true;
|
|
|
|
};
|
|
|
|
|
2021-01-17 03:30:45 +01:00
|
|
|
nativeBuildInputs = [ pkg-config python ];
|
2017-09-18 05:18:01 +02:00
|
|
|
|
2021-06-10 04:57:09 +02:00
|
|
|
buildInputs = [ alsa-lib glew libGL libpng
|
2017-09-18 05:18:01 +02:00
|
|
|
libogg libtheora libvorbis freetype
|
2020-09-11 19:41:55 +02:00
|
|
|
SDL2 SDL2_image SDL2_ttf tcl zlib ];
|
2017-09-18 05:18:01 +02:00
|
|
|
|
|
|
|
postPatch = ''
|
2020-09-11 19:41:55 +02:00
|
|
|
cp ${./custom-nix.mk} build/custom.mk
|
2017-09-18 05:18:01 +02:00
|
|
|
'';
|
|
|
|
|
|
|
|
dontAddPrefix = true;
|
|
|
|
|
|
|
|
# Many thanks @mthuurne from OpenMSX project
|
|
|
|
# for providing support to Nixpkgs :)
|
|
|
|
TCL_CONFIG="${tcl}/lib/";
|
|
|
|
|
2021-01-15 14:21:58 +01:00
|
|
|
meta = with lib;{
|
2020-09-11 19:41:55 +02:00
|
|
|
description = "The MSX emulator that aims for perfection";
|
2017-09-18 05:18:01 +02: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.
|
|
|
|
'';
|
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;
|
2020-06-30 21:39:52 +02:00
|
|
|
license = with licenses; [ bsd2 boost gpl2 ];
|
2017-09-18 05:18:01 +02:00
|
|
|
};
|
|
|
|
}
|