2016-04-17 04:24:01 +02:00
|
|
|
{ stdenv, fetchFromGitHub, cmake, mesa, freeglut }:
|
2012-02-19 11:51:04 +01:00
|
|
|
|
2013-03-09 14:54:43 +01:00
|
|
|
stdenv.mkDerivation rec {
|
2016-04-17 04:24:01 +02:00
|
|
|
name = "bullet-${version}";
|
|
|
|
version = "2.83.7";
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "bulletphysics";
|
|
|
|
repo = "bullet3";
|
|
|
|
rev = version;
|
|
|
|
sha256 = "1zz3vs6i5975y9mgb1k1vxrjbf1028v0nc11p646dsvv2vplxx5r";
|
2012-02-19 11:51:04 +01:00
|
|
|
};
|
2013-03-09 14:54:43 +01:00
|
|
|
|
|
|
|
buildInputs = [ cmake mesa freeglut ];
|
2016-04-17 04:24:01 +02:00
|
|
|
|
|
|
|
cmakeFlags = [ "-DBUILD_SHARED_LIBS=ON" "-DBUILD_CPU_DEMOS=OFF" ];
|
|
|
|
|
|
|
|
enableParallelBuilding = true;
|
2012-02-19 11:51:04 +01:00
|
|
|
|
|
|
|
meta = {
|
|
|
|
description = "A professional free 3D Game Multiphysics Library";
|
|
|
|
longDescription = ''
|
|
|
|
Bullet 3D Game Multiphysics Library provides state of the art collision
|
|
|
|
detection, soft body and rigid body dynamics.
|
|
|
|
'';
|
|
|
|
homepage = http://code.google.com/p/bullet/;
|
|
|
|
license = stdenv.lib.licenses.zlib;
|
2013-03-09 14:54:43 +01:00
|
|
|
maintainers = with stdenv.lib.maintainers; [ aforemny ];
|
2012-02-19 11:51:04 +01:00
|
|
|
};
|
|
|
|
}
|