Luke Granger-Brown
57725ef3ec
git-subtree-dir: third_party/nixpkgs git-subtree-split: 76612b17c0ce71689921ca12d9ffdc9c23ce40b2
27 lines
777 B
Nix
27 lines
777 B
Nix
{ lib, stdenv, fetchFromGitHub, cmake, SDL2, SDL2_image, SDL2_mixer, SDL2_ttf, Cocoa }:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "flare-engine";
|
|
version = "1.14";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "flareteam";
|
|
repo = pname;
|
|
rev = "v${version}";
|
|
hash = "sha256-DIzfTqwZJ8NAPB/TWzvPjepHb7hIbIr+Kk+doXJmpLc=";
|
|
};
|
|
|
|
patches = [ ./desktop.patch ];
|
|
|
|
nativeBuildInputs = [ cmake ];
|
|
buildInputs = [ SDL2 SDL2_image SDL2_mixer SDL2_ttf ]
|
|
++ lib.optional stdenv.hostPlatform.isDarwin Cocoa;
|
|
|
|
meta = with lib; {
|
|
description = "Free/Libre Action Roleplaying Engine";
|
|
homepage = "https://github.com/flareteam/flare-engine";
|
|
maintainers = with maintainers; [ aanderse McSinyx ];
|
|
license = [ licenses.gpl3 ];
|
|
platforms = platforms.unix;
|
|
};
|
|
}
|