nixpkgs/pkgs/games/vdrift/default.nix
Lluís Batlle i Rossell 655a9ea9c3 Adding the racing videogame VDrift.
I added the asio library as a side effect.

svn path=/nixpkgs/trunk/; revision=26575
2011-03-28 16:08:21 +00:00

28 lines
738 B
Nix

{ fetchurl, stdenv, mesa, SDL, scons, freeglut, SDL_image, glew, libvorbis,
asio, boost, SDL_gfx }:
stdenv.mkDerivation rec {
name = "vdrift-2010-06-30";
src = fetchurl {
url = "mirror://sourceforge/vdrift/${name}.tar.bz2";
sha256 = "1zbh62363gx4ayyx4wcsp5di4f16qqfg2ajwkgw71kss6j7lk71j";
};
buildInputs = [ scons mesa SDL freeglut SDL_image glew libvorbis asio boost
SDL_gfx ];
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;
};
}