vdrift: update and fix

Tested on two laps :-)
This commit is contained in:
Vladimír Čunát 2013-03-09 14:54:43 +01:00
parent 241f94f59f
commit 03ba2960a4
2 changed files with 21 additions and 10 deletions

View File

@ -1,14 +1,17 @@
{stdenv, fetchurl, unzip, cmake}: { stdenv, fetchurl, cmake, mesa, freeglut }:
stdenv.mkDerivation { stdenv.mkDerivation rec {
name = "bullet-2.78"; name = "bullet-2.80"; # vdrift 2012-07-22 doesn't build with 2.81
rev = "2531";
src = fetchurl { src = fetchurl {
url = "http://bullet.googlecode.com/files/bullet-2.78.zip"; url = "http://bullet.googlecode.com/files/${name}-rev${rev}.tgz";
sha256 = "10l2dclvv0di9mi9qp6xfy9vybx182xp2dyygabacrpr3p75s77k"; sha256 = "0dig6k88jz5y0cz6dn186vc4l96l4v56zvwpsp5bv9f5wdwjskj6";
}; };
buildInputs = [ unzip cmake ];
buildInputs = [ cmake mesa freeglut ];
configurePhase = '' configurePhase = ''
cmake -DBUILD_SHARED_LIBS=ON -DBUILD_EXTRAS=OFF -DBUILD_DEMOS=OFF . cmake -DBUILD_SHARED_LIBS=ON -DBUILD_EXTRAS=OFF -DBUILD_DEMOS=OFF \
-DCMAKE_INSTALL_PREFIX=$out .
''; '';
meta = { meta = {
@ -19,6 +22,6 @@ stdenv.mkDerivation {
''; '';
homepage = http://code.google.com/p/bullet/; homepage = http://code.google.com/p/bullet/;
license = stdenv.lib.licenses.zlib; license = stdenv.lib.licenses.zlib;
maintainers = [ "Alexander Foremny <alexanderforemny@googlemail.com>" ]; maintainers = with stdenv.lib.maintainers; [ aforemny ];
}; };
} }

View File

@ -2,13 +2,21 @@
asio, boost, SDL_gfx, pkgconfig, bullet, curl, libarchive }: asio, boost, SDL_gfx, pkgconfig, bullet, curl, libarchive }:
stdenv.mkDerivation rec { stdenv.mkDerivation rec {
name = "vdrift-2011-10-22"; version = "2012-07-22";
name = "vdrift-${version}";
patch = "c"; # see https://github.com/VDrift/vdrift/issues/110
src = fetchurl { src = fetchurl {
url = "mirror://sourceforge/vdrift/${name}.tar.bz2"; url = "mirror://sourceforge/vdrift/${name}.tar.bz2";
sha256 = "0vg1v1590jbln6k236kxn2sfgclvc6g34kykhh4nq9q3l1xgy38s"; sha256 = "1yqkc7y4s4g5ylw501bf0c03la7kfddjdk4yyi1xkcwy3pmgw2al";
}; };
patches = fetchurl {
url = "mirror://sourceforge/vdrift/${name}${patch}_patch.diff";
sha256 = "08mfg4xxkzyp6602cgqyjzc3rn0zsaa3ddjkpd44b83drv19lriy";
};
patchFlags = "-p0";
buildInputs = [ scons mesa SDL freeglut SDL_image glew libvorbis asio boost buildInputs = [ scons mesa SDL freeglut SDL_image glew libvorbis asio boost
SDL_gfx pkgconfig bullet curl libarchive ]; SDL_gfx pkgconfig bullet curl libarchive ];