2011-03-28 16:08:21 +00:00
|
|
|
{ fetchurl, stdenv, mesa, SDL, scons, freeglut, SDL_image, glew, libvorbis,
|
2012-02-20 13:05:21 +00:00
|
|
|
asio, boost, SDL_gfx, pkgconfig, bullet, curl, libarchive }:
|
2011-03-28 16:08:21 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2013-03-09 13:54:43 +00:00
|
|
|
version = "2012-07-22";
|
|
|
|
name = "vdrift-${version}";
|
|
|
|
patch = "c"; # see https://github.com/VDrift/vdrift/issues/110
|
2011-03-28 16:08:21 +00:00
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "mirror://sourceforge/vdrift/${name}.tar.bz2";
|
2013-03-09 13:54:43 +00:00
|
|
|
sha256 = "1yqkc7y4s4g5ylw501bf0c03la7kfddjdk4yyi1xkcwy3pmgw2al";
|
2011-03-28 16:08:21 +00:00
|
|
|
};
|
|
|
|
|
2013-03-09 13:54:43 +00:00
|
|
|
patches = fetchurl {
|
|
|
|
url = "mirror://sourceforge/vdrift/${name}${patch}_patch.diff";
|
|
|
|
sha256 = "08mfg4xxkzyp6602cgqyjzc3rn0zsaa3ddjkpd44b83drv19lriy";
|
|
|
|
};
|
|
|
|
patchFlags = "-p0";
|
|
|
|
|
2011-03-28 16:08:21 +00:00
|
|
|
buildInputs = [ scons mesa SDL freeglut SDL_image glew libvorbis asio boost
|
2012-02-20 13:05:21 +00:00
|
|
|
SDL_gfx pkgconfig bullet curl libarchive ];
|
2011-03-28 16:08:21 +00:00
|
|
|
|
|
|
|
buildPhase = ''
|
|
|
|
sed -i -e s,/usr/local,$out, SConstruct
|
|
|
|
scons
|
|
|
|
'';
|
|
|
|
installPhase = "scons install";
|
|
|
|
|
|
|
|
meta = {
|
|
|
|
description = "Car racing game";
|
|
|
|
homepage = http://vdrift.net/;
|
|
|
|
license = "GPLv2+";
|
|
|
|
maintainers = with stdenv.lib.maintainers; [viric];
|
2013-11-04 23:04:36 +00:00
|
|
|
platforms = stdenv.lib.platforms.linux;
|
|
|
|
hydraPlatforms = [];
|
2011-03-28 16:08:21 +00:00
|
|
|
};
|
|
|
|
}
|