1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-12-25 03:17:13 +00:00
nixpkgs/pkgs/games/flare/engine.nix
2021-01-15 13:36:04 +07:00

26 lines
719 B
Nix

{ lib, stdenv, fetchFromGitHub, cmake, SDL2, SDL2_image, SDL2_mixer, SDL2_ttf, Cocoa }:
stdenv.mkDerivation rec {
pname = "flare-engine";
version = "1.11";
src = fetchFromGitHub {
owner = "flareteam";
repo = pname;
rev = "v${version}";
sha256 = "1j6raymz128miq517h9drks4gj79dajw3lsr0msqxz0z3zm6cc4n";
};
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 = [ maintainers.aanderse ];
license = [ licenses.gpl3 ];
platforms = platforms.unix;
};
}