recastnavigation: fix for CMake v4 (#435496)

authored by philiptaron.tngl.sh and committed by GitHub 0d58fdb0 f1308368

+11 -18
+11 -18
pkgs/by-name/re/recastnavigation/package.nix
··· 6 libGL, 7 SDL2, 8 libGLU, 9 - catch, 10 }: 11 12 stdenv.mkDerivation { 13 pname = "recastai"; 14 - # use latest revision for the CMake build process and OpenMW 15 # OpenMW use e75adf86f91eb3082220085e42dda62679f9a3ea 16 - version = "unstable-2023-01-02"; 17 18 src = fetchFromGitHub { 19 owner = "recastnavigation"; 20 repo = "recastnavigation"; 21 - rev = "405cc095ab3a2df976a298421974a2af83843baf"; 22 - sha256 = "sha256-WVzDI7+UuAl10Tm1Zjkea/FMk0cIe7pWg0iyFLbwAdI="; 23 }; 24 25 - postPatch = '' 26 - cp ${catch}/include/catch/catch.hpp Tests/catch.hpp 27 - 28 - # https://github.com/recastnavigation/recastnavigation/issues/524 29 - substituteInPlace CMakeLists.txt \ 30 - --replace '\$'{exec_prefix}/'$'{CMAKE_INSTALL_LIBDIR} '$'{CMAKE_INSTALL_FULL_LIBDIR} \ 31 - --replace '\$'{prefix}/'$'{CMAKE_INSTALL_INCLUDEDIR} '$'{CMAKE_INSTALL_FULL_INCLUDEDIR} 32 - '' 33 - + lib.optionalString stdenv.hostPlatform.isDarwin '' 34 # Expects SDL2.framework in specific location, which we don't have 35 # Change where SDL2 headers are searched for to match what we do have 36 substituteInPlace RecastDemo/CMakeLists.txt \ ··· 40 doCheck = true; 41 42 nativeBuildInputs = [ cmake ]; 43 44 buildInputs = [ 45 libGL ··· 47 libGLU 48 ]; 49 50 - meta = with lib; { 51 homepage = "https://github.com/recastnavigation/recastnavigation"; 52 description = "Navigation-mesh Toolset for Games"; 53 mainProgram = "RecastDemo"; 54 - license = licenses.zlib; 55 - maintainers = with maintainers; [ marius851000 ]; 56 - platforms = platforms.all; 57 }; 58 }
··· 6 libGL, 7 SDL2, 8 libGLU, 9 + catch2_3, 10 }: 11 12 stdenv.mkDerivation { 13 pname = "recastai"; 14 + # use latest revision for CMake v4 15 # OpenMW use e75adf86f91eb3082220085e42dda62679f9a3ea 16 + version = "unstable-2025-08-12"; 17 18 src = fetchFromGitHub { 19 owner = "recastnavigation"; 20 repo = "recastnavigation"; 21 + rev = "40ec6fcd6c0263a3d7798452aee531066072d15d"; 22 + hash = "sha256-4flJMJsuCecpHDtgAsnDU7WoAtUg/XJfRXx096Zw6bE="; 23 }; 24 25 + postPatch = lib.optionalString stdenv.hostPlatform.isDarwin '' 26 # Expects SDL2.framework in specific location, which we don't have 27 # Change where SDL2 headers are searched for to match what we do have 28 substituteInPlace RecastDemo/CMakeLists.txt \ ··· 32 doCheck = true; 33 34 nativeBuildInputs = [ cmake ]; 35 + checkInputs = [ catch2_3 ]; 36 37 buildInputs = [ 38 libGL ··· 40 libGLU 41 ]; 42 43 + meta = { 44 homepage = "https://github.com/recastnavigation/recastnavigation"; 45 description = "Navigation-mesh Toolset for Games"; 46 mainProgram = "RecastDemo"; 47 + license = lib.licenses.zlib; 48 + maintainers = with lib.maintainers; [ marius851000 ]; 49 + platforms = lib.platforms.all; 50 }; 51 }