Merge pull request #31184 from AndersonTorres/upload/openmsx

openmsx: init at git-2017-11-02
This commit is contained in:
Jörg Thalheim 2017-11-25 15:55:27 +00:00 committed by GitHub
commit f2a689b7f6
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 61 additions and 0 deletions

View file

@ -0,0 +1,9 @@
# This file substitutes $sourceRoot/build/custom.mk
VERSION_EXEC:=false
SYMLINK_FOR_BINARY:=false
INSTALL_CONTRIB:=true
INSTALL_BASE:=${out}
INSTALL_DOC_DIR:=${INSTALL_BASE}/share/doc/openmsx
INSTALL_SHARE_DIR:=${INSTALL_BASE}/share/openmsx
INSTALL_BINARY_DIR:=${INSTALL_BASE}/bin

View file

@ -0,0 +1,48 @@
{ stdenv, fetchFromGitHub, pkgconfig
, python
, alsaLib, glew, mesa_noglu, libpng
, libogg, libtheora, libvorbis
, SDL, SDL_image, SDL_ttf
, freetype, tcl, zlib
}:
stdenv.mkDerivation rec {
name = "openmsx-${version}";
version = "git-2017-11-02";
src = fetchFromGitHub {
owner = "openMSX";
repo = "openMSX";
rev = "eeb74206ae347a3b17e9b99f91f2b4682c5db22c";
sha256 = "170amj7k6wjhwx6psbplqljvckvhxxbv3aw72jrdxl1fb8zlnq3s";
fetchSubmodules = true;
};
nativeBuildInputs = [ pkgconfig python ];
buildInputs = [ alsaLib glew mesa_noglu libpng
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;
};
}

View file

@ -19909,6 +19909,10 @@ with pkgs;
snes9x-gtk = callPackage ../misc/emulators/snes9x-gtk { };
openmsx = callPackage ../misc/emulators/openmsx {
python = python27;
};
higan = callPackage ../misc/emulators/higan {
inherit (gnome2) gtksourceview;
};