2021-01-15 22:18:51 +00:00
|
|
|
{ lib, stdenv, fetchFromGitHub, which
|
2020-04-24 23:36:52 +00:00
|
|
|
, boost, SDL2, SDL2_image, SDL2_mixer, SDL2_ttf
|
2021-02-05 17:12:51 +00:00
|
|
|
, glew, zlib, icu, pkg-config, cairo, libvpx }:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation {
|
|
|
|
pname = "anura-engine";
|
2021-06-04 09:07:49 +00:00
|
|
|
version = "unstable-2021-05-24";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "anura-engine";
|
|
|
|
repo = "anura";
|
2021-06-04 09:07:49 +00:00
|
|
|
rev = "ed50bbfa68a4aa09438d95d39103ec39156d438f";
|
|
|
|
sha256 = "0bk0qklk9wwx3jr2kbrmansccn1nj962v5n2vlb5hxsrcv96s3dg";
|
2020-04-24 23:36:52 +00:00
|
|
|
fetchSubmodules = true;
|
|
|
|
};
|
|
|
|
|
2021-06-04 09:07:49 +00:00
|
|
|
postPatch = ''
|
|
|
|
substituteInPlace src/sys.cpp \
|
|
|
|
--replace mallinfo2 mallinfo
|
|
|
|
'';
|
|
|
|
|
2020-04-24 23:36:52 +00:00
|
|
|
nativeBuildInputs = [
|
2021-02-05 17:12:51 +00:00
|
|
|
which pkg-config
|
2020-04-24 23:36:52 +00: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-15 22:18:51 +00:00
|
|
|
meta = with lib; {
|
2020-04-24 23:36:52 +00:00
|
|
|
homepage = "https://github.com/anura-engine/anura";
|
|
|
|
description = "Game engine used by Frogatto";
|
|
|
|
license = licenses.zlib;
|
|
|
|
platforms = platforms.linux;
|
|
|
|
maintainers = with maintainers; [ astro ];
|
|
|
|
};
|
|
|
|
}
|