2022-04-13 23:41:30 +00:00
|
|
|
{ lib, stdenv, fetchFromGitHub, fetchurl, which
|
2019-01-02 10:47:16 +00:00
|
|
|
, boost, SDL2, SDL2_image, SDL2_mixer, SDL2_ttf
|
2021-01-17 05:49:22 +00:00
|
|
|
, glew, zlib, icu, pkg-config, cairo, libvpx }:
|
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";
|
2022-04-13 23:41:30 +00:00
|
|
|
version = "unstable-2022-04-09";
|
2019-01-02 10:47:16 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "anura-engine";
|
|
|
|
repo = "anura";
|
2022-04-13 23:41:30 +00:00
|
|
|
rev = "5ac7f6fe63114274f0da7dad4c1ed673651e6424";
|
|
|
|
sha256 = "1yrcbvzgxdvn893qk1qcpb53pjns366fdls5qjal7lhq71kkfc67";
|
2019-01-02 10:47:16 +00:00
|
|
|
fetchSubmodules = true;
|
|
|
|
};
|
2022-04-13 23:41:30 +00:00
|
|
|
patches = [
|
|
|
|
# https://github.com/anura-engine/anura/issues/321
|
|
|
|
(fetchurl {
|
|
|
|
url = "https://github.com/anura-engine/anura/commit/627d08fb5254b5c66d315f1706089905c2704059.patch";
|
|
|
|
sha256 = "052m58qb3lg0hnxacpnjz2sz89dk0x6b5qi2q9bkzkvg38f237rr";
|
|
|
|
})
|
|
|
|
];
|
2019-01-02 10:47:16 +00:00
|
|
|
|
|
|
|
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
|
|
|
|
];
|
|
|
|
|
|
|
|
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 ];
|
|
|
|
};
|
|
|
|
}
|