3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/games/flare/engine.nix

28 lines
766 B
Nix
Raw Normal View History

{ lib, stdenv, fetchFromGitHub, cmake, SDL2, SDL2_image, SDL2_mixer, SDL2_ttf, Cocoa }:
2019-05-19 13:06:24 +01:00
stdenv.mkDerivation rec {
pname = "flare-engine";
version = "1.13";
2019-05-19 13:06:24 +01:00
src = fetchFromGitHub {
owner = "flareteam";
repo = pname;
rev = "v${version}";
sha256 = "sha256-53JCjVu6vG4js5UryQIccpD8qdS+EfxSyV4v2LOYe+c=";
2019-05-19 13:06:24 +01:00
};
2021-07-15 09:11:37 +01:00
patches = [ ./desktop.patch ];
2019-05-19 13:06:24 +01:00
nativeBuildInputs = [ cmake ];
2019-08-03 13:12:24 +01: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 13:06:24 +01:00
meta = with lib; {
2019-05-19 13:06:24 +01:00
description = "Free/Libre Action Roleplaying Engine";
homepage = "https://github.com/flareteam/flare-engine";
maintainers = with maintainers; [ aanderse McSinyx ];
2019-05-19 13:06:24 +01:00
license = [ licenses.gpl3 ];
platforms = platforms.unix;
};
}