2011-03-28 18:08:21 +02:00
|
|
|
{ fetchurl, stdenv, mesa, SDL, scons, freeglut, SDL_image, glew, libvorbis,
|
2012-02-20 14:05:21 +01:00
|
|
|
asio, boost, SDL_gfx, pkgconfig, bullet, curl, libarchive }:
|
2011-03-28 18:08:21 +02:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2012-02-20 14:05:21 +01:00
|
|
|
name = "vdrift-2011-10-22";
|
2011-03-28 18:08:21 +02:00
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "mirror://sourceforge/vdrift/${name}.tar.bz2";
|
2012-02-20 14:05:21 +01:00
|
|
|
sha256 = "0vg1v1590jbln6k236kxn2sfgclvc6g34kykhh4nq9q3l1xgy38s";
|
2011-03-28 18:08:21 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
buildInputs = [ scons mesa SDL freeglut SDL_image glew libvorbis asio boost
|
2012-02-20 14:05:21 +01:00
|
|
|
SDL_gfx pkgconfig bullet curl libarchive ];
|
2011-03-28 18:08:21 +02: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];
|
|
|
|
platforms = with stdenv.lib.platforms; linux;
|
|
|
|
};
|
|
|
|
}
|