nixpkgs/pkgs/games/flare/engine.nix

28 lines
753 B
Nix
Raw Normal View History

{ lib, stdenv, fetchFromGitHub, cmake, SDL2, SDL2_image, SDL2_mixer, SDL2_ttf, Cocoa }:
2019-05-19 08:06:24 -04:00
stdenv.mkDerivation rec {
pname = "flare-engine";
2021-08-03 03:57:06 -04:00
version = "1.12";
2019-05-19 08:06:24 -04:00
src = fetchFromGitHub {
owner = "flareteam";
repo = pname;
rev = "v${version}";
2021-08-03 03:57:06 -04:00
sha256 = "0swav6fzz970wj4iic3b7y06haa05720s2wivc8w7wcw9nzcac7j";
2019-05-19 08:06:24 -04:00
};
2021-07-15 04:11:37 -04:00
patches = [ ./desktop.patch ];
2019-05-19 08:06:24 -04:00
nativeBuildInputs = [ cmake ];
2019-08-03 08:12:24 -04:00
buildInputs = [ SDL2 SDL2_image SDL2_mixer SDL2_ttf ]
2021-01-14 23:31:39 -05:00
++ lib.optional stdenv.isDarwin Cocoa;
2019-05-19 08:06:24 -04:00
meta = with lib; {
2019-05-19 08:06:24 -04:00
description = "Free/Libre Action Roleplaying Engine";
homepage = "https://github.com/flareteam/flare-engine";
maintainers = [ maintainers.aanderse ];
license = [ licenses.gpl3 ];
platforms = platforms.unix;
};
}