1{ lib, stdenv, fetchFromGitHub, cmake, doxygen ? null, pkg-config
2, freetype ? null, fmt, glib, harfbuzz ? null
3, liblcf, libpng, libsndfile ? null, libvorbis ? null, libxmp ? null
4, libXcursor, libXext, libXi, libXinerama, libXrandr, libXScrnSaver, libXxf86vm
5, mpg123 ? null, opusfile ? null, pcre, pixman, SDL2, speexdsp ? null, wildmidi ? null, zlib
6, libdecor
7}:
8
9stdenv.mkDerivation rec {
10 pname = "easyrpg-player";
11 version = "0.7.0";
12
13 src = fetchFromGitHub {
14 owner = "EasyRPG";
15 repo = "Player";
16 rev = version;
17 sha256 = "049bj3jg3ldi3n11nx8xvh6pll68g7dcxz51q6z1gyyfxxws1qpj";
18 };
19
20 nativeBuildInputs = [ cmake doxygen pkg-config ];
21
22 buildInputs = [
23 fmt
24 freetype
25 glib
26 harfbuzz
27 liblcf
28 libpng
29 libsndfile
30 libvorbis
31 libxmp
32 libXcursor
33 libXext
34 libXi
35 libXinerama
36 libXrandr
37 libXScrnSaver
38 libXxf86vm
39 mpg123
40 opusfile
41 pcre
42 pixman
43 SDL2
44 speexdsp
45 wildmidi
46 zlib
47 libdecor
48 ];
49
50 meta = with lib; {
51 description = "RPG Maker 2000/2003 and EasyRPG games interpreter";
52 homepage = "https://easyrpg.org/";
53 license = licenses.gpl3;
54 maintainers = with maintainers; [ yana ];
55 platforms = platforms.linux;
56 };
57}