nixpkgs/pkgs/games/flare/engine.nix
Nguyễn Gia Phong 02c976001a
flare: 1.12 -> 1.13
Also add myself as a maintainer.
2022-02-06 14:44:03 +07:00

28 lines
766 B
Nix

{ lib, stdenv, fetchFromGitHub, cmake, SDL2, SDL2_image, SDL2_mixer, SDL2_ttf, Cocoa }:
stdenv.mkDerivation rec {
pname = "flare-engine";
version = "1.13";
src = fetchFromGitHub {
owner = "flareteam";
repo = pname;
rev = "v${version}";
sha256 = "sha256-53JCjVu6vG4js5UryQIccpD8qdS+EfxSyV4v2LOYe+c=";
};
patches = [ ./desktop.patch ];
nativeBuildInputs = [ cmake ];
buildInputs = [ SDL2 SDL2_image SDL2_mixer SDL2_ttf ]
++ lib.optional stdenv.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;
};
}