pytrainer: unpin python 3.10
[NixPkgs.git] / pkgs / games / flare / engine.nix
blobb404e8ecfcd033c8fbe211193973e112248fd3a6
1 { lib, stdenv, fetchFromGitHub, cmake, SDL2, SDL2_image, SDL2_mixer, SDL2_ttf, Cocoa }:
3 stdenv.mkDerivation rec {
4   pname = "flare-engine";
5   version = "1.14";
7   src = fetchFromGitHub {
8     owner = "flareteam";
9     repo = pname;
10     rev = "v${version}";
11     hash = "sha256-DIzfTqwZJ8NAPB/TWzvPjepHb7hIbIr+Kk+doXJmpLc=";
12   };
14   patches = [ ./desktop.patch ];
16   nativeBuildInputs = [ cmake ];
17   buildInputs = [ SDL2 SDL2_image SDL2_mixer SDL2_ttf ]
18     ++ lib.optional stdenv.hostPlatform.isDarwin Cocoa;
20   meta = with lib; {
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;
26   };