2021-01-11 07:54:33 +00:00
|
|
|
{ lib, stdenv, fetchFromGitHub, cmake, SDL2, SDL2_image, SDL2_mixer, SDL2_ttf, Cocoa }:
|
2019-05-19 12:06:24 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "flare-engine";
|
2023-03-30 14:10:31 +00:00
|
|
|
version = "1.14";
|
2019-05-19 12:06:24 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "flareteam";
|
|
|
|
repo = pname;
|
|
|
|
rev = "v${version}";
|
2023-03-30 14:10:31 +00:00
|
|
|
hash = "sha256-DIzfTqwZJ8NAPB/TWzvPjepHb7hIbIr+Kk+doXJmpLc=";
|
2019-05-19 12:06:24 +00:00
|
|
|
};
|
|
|
|
|
2021-07-15 08:11:37 +00:00
|
|
|
patches = [ ./desktop.patch ];
|
|
|
|
|
2019-05-19 12:06:24 +00:00
|
|
|
nativeBuildInputs = [ cmake ];
|
2019-08-03 12:12:24 +00:00
|
|
|
buildInputs = [ SDL2 SDL2_image SDL2_mixer SDL2_ttf ]
|
2021-01-15 04:31:39 +00:00
|
|
|
++ lib.optional stdenv.isDarwin Cocoa;
|
2019-05-19 12:06:24 +00:00
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2019-05-19 12:06:24 +00:00
|
|
|
description = "Free/Libre Action Roleplaying Engine";
|
|
|
|
homepage = "https://github.com/flareteam/flare-engine";
|
2022-02-06 07:44:03 +00:00
|
|
|
maintainers = with maintainers; [ aanderse McSinyx ];
|
2019-05-19 12:06:24 +00:00
|
|
|
license = [ licenses.gpl3 ];
|
|
|
|
platforms = platforms.unix;
|
|
|
|
};
|
|
|
|
}
|