2013-03-09 13:54:43 +00:00
|
|
|
{ stdenv, fetchurl, cmake, mesa, freeglut }:
|
2012-02-19 10:51:04 +00:00
|
|
|
|
2013-03-09 13:54:43 +00:00
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
name = "bullet-2.80"; # vdrift 2012-07-22 doesn't build with 2.81
|
|
|
|
rev = "2531";
|
2012-02-19 10:51:04 +00:00
|
|
|
src = fetchurl {
|
2013-03-09 13:54:43 +00:00
|
|
|
url = "http://bullet.googlecode.com/files/${name}-rev${rev}.tgz";
|
|
|
|
sha256 = "0dig6k88jz5y0cz6dn186vc4l96l4v56zvwpsp5bv9f5wdwjskj6";
|
2012-02-19 10:51:04 +00:00
|
|
|
};
|
2013-03-09 13:54:43 +00:00
|
|
|
|
|
|
|
buildInputs = [ cmake mesa freeglut ];
|
2012-02-19 10:51:04 +00:00
|
|
|
configurePhase = ''
|
2013-03-09 13:54:43 +00:00
|
|
|
cmake -DBUILD_SHARED_LIBS=ON -DBUILD_EXTRAS=OFF -DBUILD_DEMOS=OFF \
|
|
|
|
-DCMAKE_INSTALL_PREFIX=$out .
|
2012-02-19 10:51:04 +00: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 13:54:43 +00:00
|
|
|
maintainers = with stdenv.lib.maintainers; [ aforemny ];
|
2012-02-19 10:51:04 +00:00
|
|
|
};
|
|
|
|
}
|