2021-01-11 08:54:33 +01:00
|
|
|
{ lib, stdenv, fetchFromGitHub, which
|
2019-01-02 11:47:16 +01:00
|
|
|
, boost, SDL2, SDL2_image, SDL2_mixer, SDL2_ttf
|
2021-01-17 06:49:22 +01:00
|
|
|
, glew, zlib, icu, pkg-config, cairo, libvpx }:
|
2019-01-02 11:47:16 +01:00
|
|
|
|
2019-08-13 23:52:01 +02:00
|
|
|
stdenv.mkDerivation {
|
2019-01-02 11:47:16 +01: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 22:00:25 +01:00
|
|
|
rev = "a05f413f255d2854019134be817c253a03da3d9f";
|
|
|
|
sha256 = "1hd57q8gbn1zdpibnqd3ma0z1ycayc2f4r9j4m2m9kc6yf4v7w7b";
|
2019-01-02 11:47:16 +01:00
|
|
|
fetchSubmodules = true;
|
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [
|
2021-01-17 06:49:22 +01:00
|
|
|
which pkg-config
|
2019-01-02 11:47:16 +01:00
|
|
|
];
|
|
|
|
|
|
|
|
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
|
|
|
|
'';
|
|
|
|
|
2021-01-11 08:54:33 +01:00
|
|
|
meta = with lib; {
|
2020-04-01 03:11:51 +02:00
|
|
|
homepage = "https://github.com/anura-engine/anura";
|
2019-01-02 11:47:16 +01:00
|
|
|
description = "Game engine used by Frogatto";
|
|
|
|
license = licenses.zlib;
|
|
|
|
platforms = platforms.linux;
|
|
|
|
maintainers = with maintainers; [ astro ];
|
|
|
|
};
|
|
|
|
}
|