nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at 22.05 34 lines 961 B view raw
1{ stdenv, lib, fetchFromGitHub, cmake, libGL, SDL2, libGLU, catch }: 2 3stdenv.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"; 8 9 src = fetchFromGitHub { 10 owner = "recastnavigation"; 11 repo = "recastnavigation"; 12 rev = "c5cbd53024c8a9d8d097a4371215e3342d2fdc87"; 13 sha256 = "sha256-QP3lMMFR6fiKQTksAkRL6X9yaoVz2xt4QSIP9g6piww="; 14 }; 15 16 postPatch = '' 17 cp ${catch}/include/catch/catch.hpp Tests/catch.hpp 18 ''; 19 20 doCheck = true; 21 22 nativeBuildInputs = [ cmake ]; 23 24 buildInputs = [ libGL SDL2 libGLU ]; 25 26 meta = with lib; { 27 broken = stdenv.isDarwin; 28 homepage = "https://github.com/recastnavigation/recastnavigation"; 29 description = "Navigation-mesh Toolset for Games"; 30 license = licenses.zlib; 31 maintainers = with maintainers; [ marius851000 ]; 32 platforms = platforms.all; 33 }; 34}