2016-04-17 02:24:26 +00:00
|
|
|
{ stdenv, fetchFromGitHub, fetchsvn, pkgconfig, scons, mesa, SDL2, SDL2_image, libvorbis,
|
|
|
|
bullet, curl, gettext }:
|
2011-03-28 16:08:21 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2016-04-17 02:24:26 +00:00
|
|
|
version = "2014-10-20";
|
2013-03-09 13:54:43 +00:00
|
|
|
name = "vdrift-${version}";
|
2011-03-28 16:08:21 +00:00
|
|
|
|
2016-04-17 02:24:26 +00:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "VDrift";
|
|
|
|
repo = "vdrift";
|
|
|
|
rev = version;
|
|
|
|
sha256 = "09yny5qzdrpffq3xhqwfymsracwsxwmdd5xa8bxx9a56hhxbak2l";
|
2011-03-28 16:08:21 +00:00
|
|
|
};
|
|
|
|
|
2016-04-17 02:24:26 +00:00
|
|
|
data = fetchsvn {
|
|
|
|
url = "svn://svn.code.sf.net/p/vdrift/code/vdrift-data";
|
|
|
|
rev = 1386;
|
|
|
|
sha256 = "0ka6zir9hg0md5p03dl461jkvbk05ywyw233hnc3ka6shz3vazi1";
|
2013-03-09 13:54:43 +00:00
|
|
|
};
|
|
|
|
|
2016-04-17 02:24:26 +00:00
|
|
|
buildInputs = [ pkgconfig scons mesa SDL2 SDL2_image libvorbis bullet curl gettext ];
|
2011-03-28 16:08:21 +00:00
|
|
|
|
|
|
|
buildPhase = ''
|
2016-04-17 02:24:26 +00:00
|
|
|
cp -r --reflink=auto $data data
|
|
|
|
chmod -R +w data
|
2011-03-28 16:08:21 +00:00
|
|
|
sed -i -e s,/usr/local,$out, SConstruct
|
|
|
|
scons
|
|
|
|
'';
|
|
|
|
installPhase = "scons install";
|
|
|
|
|
|
|
|
meta = {
|
|
|
|
description = "Car racing game";
|
|
|
|
homepage = http://vdrift.net/;
|
2014-06-19 04:19:00 +00:00
|
|
|
license = stdenv.lib.licenses.gpl2Plus;
|
2011-03-28 16:08:21 +00:00
|
|
|
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
|
|
|
};
|
|
|
|
}
|