2019-06-16 20:59:06 +01:00
|
|
|
{ stdenv, fetchFromGitHub, which
|
2019-01-02 10:47:16 +00:00
|
|
|
, boost, SDL2, SDL2_image, SDL2_mixer, SDL2_ttf
|
|
|
|
, glew, zlib, icu, pkgconfig, cairo, libvpx }:
|
|
|
|
|
2019-08-13 22:52:01 +01:00
|
|
|
stdenv.mkDerivation {
|
2019-01-02 10:47:16 +00:00
|
|
|
pname = "anura-engine";
|
|
|
|
version = "unstable-2018-11-28";
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "anura-engine";
|
|
|
|
repo = "anura";
|
|
|
|
# trunk branch as of 2018-11-28
|
2020-12-19 21:00:25 +00:00
|
|
|
rev = "a05f413f255d2854019134be817c253a03da3d9f";
|
|
|
|
sha256 = "1hd57q8gbn1zdpibnqd3ma0z1ycayc2f4r9j4m2m9kc6yf4v7w7b";
|
2019-01-02 10:47:16 +00:00
|
|
|
fetchSubmodules = true;
|
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [
|
|
|
|
which pkgconfig
|
|
|
|
];
|
|
|
|
|
|
|
|
buildInputs = [
|
|
|
|
boost
|
|
|
|
SDL2
|
|
|
|
SDL2_image
|
|
|
|
SDL2_mixer
|
|
|
|
SDL2_ttf
|
|
|
|
glew
|
|
|
|
zlib
|
|
|
|
icu
|
|
|
|
cairo
|
|
|
|
libvpx
|
|
|
|
];
|
|
|
|
|
|
|
|
enableParallelBuilding = true;
|
|
|
|
|
|
|
|
installPhase = ''
|
|
|
|
mkdir -p $out/bin $out/share/frogatto
|
|
|
|
cp -ar data images modules $out/share/frogatto/
|
|
|
|
cp -a anura $out/bin/frogatto
|
|
|
|
'';
|
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
2020-04-01 02:11:51 +01:00
|
|
|
homepage = "https://github.com/anura-engine/anura";
|
2019-01-02 10:47:16 +00:00
|
|
|
description = "Game engine used by Frogatto";
|
|
|
|
license = licenses.zlib;
|
|
|
|
platforms = platforms.linux;
|
|
|
|
maintainers = with maintainers; [ astro ];
|
|
|
|
};
|
|
|
|
}
|