python3Packages.orjson: Disable failing tests on 32 bit
[NixPkgs.git] / pkgs / development / libraries / recastnavigation / default.nix
blob59f39986ffcddfbe2b780670db455193c91033e1
1 { stdenv, lib, fetchFromGitHub, cmake, libGL, SDL2, libGLU, catch }:
3 stdenv.mkDerivation rec {
4   pname = "recastai";
5   # use latest revision for the CMake build process and OpenMW
6   # OpenMW use e75adf86f91eb3082220085e42dda62679f9a3ea
7   version = "unstable-2021-03-05";
9   src = fetchFromGitHub {
10     owner = "recastnavigation";
11     repo = "recastnavigation";
12     rev = "c5cbd53024c8a9d8d097a4371215e3342d2fdc87";
13     sha256 = "sha256-QP3lMMFR6fiKQTksAkRL6X9yaoVz2xt4QSIP9g6piww=";
14   };
16   postPatch = ''
17     cp ${catch}/include/catch/catch.hpp Tests/catch.hpp
19     # https://github.com/recastnavigation/recastnavigation/issues/524
20     substituteInPlace CMakeLists.txt \
21       --replace '\$'{exec_prefix}/'$'{CMAKE_INSTALL_LIBDIR} '$'{CMAKE_INSTALL_FULL_LIBDIR} \
22       --replace '\$'{prefix}/'$'{CMAKE_INSTALL_INCLUDEDIR} '$'{CMAKE_INSTALL_FULL_INCLUDEDIR}
23   '';
25   doCheck = true;
27   nativeBuildInputs = [ cmake ];
29   buildInputs = [ libGL SDL2 libGLU ];
31   meta = with lib; {
32     broken = stdenv.isDarwin;
33     homepage = "https://github.com/recastnavigation/recastnavigation";
34     description = "Navigation-mesh Toolset for Games";
35     license = licenses.zlib;
36     maintainers = with maintainers; [ marius851000 ];
37     platforms = platforms.all;
38   };