2022-01-10 15:40:44 +00:00
|
|
|
{ stdenv, lib, fetchFromGitHub, cmake, libGL, SDL2, libGLU, catch }:
|
2021-11-05 17:10:59 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "recastai";
|
|
|
|
# use latest revision for the CMake build process and OpenMW
|
|
|
|
# OpenMW use e75adf86f91eb3082220085e42dda62679f9a3ea
|
|
|
|
version = "unstable-2021-03-05";
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "recastnavigation";
|
|
|
|
repo = "recastnavigation";
|
|
|
|
rev = "c5cbd53024c8a9d8d097a4371215e3342d2fdc87";
|
|
|
|
sha256 = "sha256-QP3lMMFR6fiKQTksAkRL6X9yaoVz2xt4QSIP9g6piww=";
|
|
|
|
};
|
|
|
|
|
2022-01-10 15:40:44 +00:00
|
|
|
postPatch = ''
|
|
|
|
cp ${catch}/include/catch/catch.hpp Tests/catch.hpp
|
2022-05-18 18:21:31 +00:00
|
|
|
|
|
|
|
# https://github.com/recastnavigation/recastnavigation/issues/524
|
|
|
|
substituteInPlace CMakeLists.txt \
|
|
|
|
--replace '\$'{exec_prefix}/'$'{CMAKE_INSTALL_LIBDIR} '$'{CMAKE_INSTALL_FULL_LIBDIR} \
|
|
|
|
--replace '\$'{prefix}/'$'{CMAKE_INSTALL_INCLUDEDIR} '$'{CMAKE_INSTALL_FULL_INCLUDEDIR}
|
2022-01-10 15:40:44 +00:00
|
|
|
'';
|
|
|
|
|
|
|
|
doCheck = true;
|
|
|
|
|
2021-11-05 17:10:59 +00:00
|
|
|
nativeBuildInputs = [ cmake ];
|
|
|
|
|
|
|
|
buildInputs = [ libGL SDL2 libGLU ];
|
|
|
|
|
|
|
|
meta = with lib; {
|
2022-05-28 13:38:40 +00:00
|
|
|
broken = stdenv.isDarwin;
|
2021-11-05 17:10:59 +00:00
|
|
|
homepage = "https://github.com/recastnavigation/recastnavigation";
|
|
|
|
description = "Navigation-mesh Toolset for Games";
|
|
|
|
license = licenses.zlib;
|
|
|
|
maintainers = with maintainers; [ marius851000 ];
|
|
|
|
platforms = platforms.all;
|
|
|
|
};
|
|
|
|
}
|