1 { lib, stdenv, fetchFromGitHub, cmake, SDL2, SDL2_image, SDL2_mixer, SDL2_ttf, Cocoa }:
3 stdenv.mkDerivation rec {
4 pname = "flare-engine";
7 src = fetchFromGitHub {
11 hash = "sha256-DIzfTqwZJ8NAPB/TWzvPjepHb7hIbIr+Kk+doXJmpLc=";
14 patches = [ ./desktop.patch ];
16 nativeBuildInputs = [ cmake ];
17 buildInputs = [ SDL2 SDL2_image SDL2_mixer SDL2_ttf ]
18 ++ lib.optional stdenv.isDarwin Cocoa;
21 description = "Free/Libre Action Roleplaying Engine";
22 homepage = "https://github.com/flareteam/flare-engine";
23 maintainers = with maintainers; [ aanderse McSinyx ];
24 license = [ licenses.gpl3 ];
25 platforms = platforms.unix;