2021-01-11 08:54:33 +01:00
|
|
|
{ lib, stdenv, fetchFromGitHub, cmake, SDL2, SDL2_image, SDL2_mixer, SDL2_ttf, Cocoa }:
|
2019-05-19 14:06:24 +02:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "flare-engine";
|
2019-08-03 13:11:47 +02:00
|
|
|
version = "1.11";
|
2019-05-19 14:06:24 +02:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "flareteam";
|
|
|
|
repo = pname;
|
|
|
|
rev = "v${version}";
|
2019-08-03 13:11:47 +02:00
|
|
|
sha256 = "1j6raymz128miq517h9drks4gj79dajw3lsr0msqxz0z3zm6cc4n";
|
2019-05-19 14:06:24 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [ cmake ];
|
2019-08-03 14:12:24 +02:00
|
|
|
buildInputs = [ SDL2 SDL2_image SDL2_mixer SDL2_ttf ]
|
2021-01-15 05:31:39 +01:00
|
|
|
++ lib.optional stdenv.isDarwin Cocoa;
|
2019-05-19 14:06:24 +02:00
|
|
|
|
2021-01-11 08:54:33 +01:00
|
|
|
meta = with lib; {
|
2019-05-19 14:06:24 +02:00
|
|
|
description = "Free/Libre Action Roleplaying Engine";
|
|
|
|
homepage = "https://github.com/flareteam/flare-engine";
|
|
|
|
maintainers = [ maintainers.aanderse ];
|
|
|
|
license = [ licenses.gpl3 ];
|
|
|
|
platforms = platforms.unix;
|
|
|
|
};
|
|
|
|
}
|