2024-05-20 03:17:03 +00:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
stdenv,
|
|
|
|
fetchFromGitHub,
|
|
|
|
which,
|
2019-01-02 10:47:16 +00:00
|
|
|
boost,
|
|
|
|
SDL2,
|
|
|
|
SDL2_image,
|
|
|
|
SDL2_mixer,
|
|
|
|
SDL2_ttf,
|
2023-02-28 21:35:46 +00:00
|
|
|
glew,
|
|
|
|
zlib,
|
|
|
|
icu,
|
|
|
|
pkg-config,
|
|
|
|
cairo,
|
|
|
|
libvpx,
|
|
|
|
glm,
|
|
|
|
}:
|
2019-01-02 10:47:16 +00:00
|
|
|
|
2019-08-13 21:52:01 +00:00
|
|
|
stdenv.mkDerivation {
|
2019-01-02 10:47:16 +00:00
|
|
|
pname = "anura-engine";
|
2023-02-28 21:35:46 +00:00
|
|
|
version = "unstable-2023-02-27";
|
2019-01-02 10:47:16 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "anura-engine";
|
|
|
|
repo = "anura";
|
2023-02-28 21:35:46 +00:00
|
|
|
rev = "65d85b6646099db1d5cd25d31321bb434a3f94f1";
|
|
|
|
sha256 = "sha256-hb4Sn7uI+eXLaGb4zkEy4w+ByQJ6FqkoMUYFsyiFCeE=";
|
2019-01-02 10:47:16 +00:00
|
|
|
fetchSubmodules = true;
|
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [
|
2021-01-17 05:49:22 +00:00
|
|
|
which
|
|
|
|
pkg-config
|
2019-01-02 10:47:16 +00:00
|
|
|
];
|
|
|
|
|
|
|
|
buildInputs = [
|
|
|
|
boost
|
|
|
|
SDL2
|
|
|
|
SDL2_image
|
|
|
|
SDL2_mixer
|
|
|
|
SDL2_ttf
|
|
|
|
glew
|
|
|
|
zlib
|
|
|
|
icu
|
|
|
|
cairo
|
|
|
|
libvpx
|
2023-02-28 21:35:46 +00:00
|
|
|
glm
|
2019-01-02 10:47:16 +00:00
|
|
|
];
|
|
|
|
|
2024-05-01 06:03:19 +00:00
|
|
|
env.CXXFLAGS = "-DGLM_ENABLE_EXPERIMENTAL -Wno-error=deprecated-declarations";
|
2024-05-01 00:25:28 +00:00
|
|
|
|
2019-01-02 10:47:16 +00:00
|
|
|
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 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2020-04-01 01:11:51 +00: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 ];
|
|
|
|
};
|
|
|
|
}
|