2014-11-03 13:50:43 +01:00
|
|
|
{ fetchgit, stdenv, cmake, boost, ogre, mygui, ois, SDL2, libvorbis, pkgconfig
|
2013-01-10 15:10:27 +01:00
|
|
|
, makeWrapper, enet, libXcursor }:
|
2012-02-10 22:53:59 +01:00
|
|
|
|
2012-02-10 21:24:13 +01:00
|
|
|
stdenv.mkDerivation rec {
|
2014-11-14 18:18:44 +01:00
|
|
|
name = "stunt-rally-${version}";
|
|
|
|
version = "2.5";
|
2012-02-10 21:24:13 +01:00
|
|
|
|
2013-01-10 15:10:27 +01:00
|
|
|
src = fetchgit {
|
|
|
|
url = git://github.com/stuntrally/stuntrally.git;
|
2014-11-14 18:18:44 +01:00
|
|
|
rev = "refs/tags/${version}";
|
2014-11-03 13:50:43 +01:00
|
|
|
sha256 = "0zyzkac11dv9c1rxknydkisg2iw1rmi72psidl7jmq8v3rrqxk4r";
|
2012-02-10 21:24:13 +01:00
|
|
|
};
|
|
|
|
|
2013-01-10 15:10:27 +01:00
|
|
|
tracks = fetchgit {
|
|
|
|
url = git://github.com/stuntrally/tracks.git;
|
2014-11-14 18:18:44 +01:00
|
|
|
rev = "refs/tags/${version}";
|
2014-11-03 13:50:43 +01:00
|
|
|
sha256 = "1j237dbhd1ik5mj8whbvlff5da9vzzgiskcj5nzfpw1vb1jpdjvd";
|
2013-01-10 15:10:27 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
preConfigure = ''
|
2014-11-03 13:50:43 +01:00
|
|
|
cp -R ${tracks} data/tracks
|
|
|
|
chmod u+rwX -R data
|
2013-01-10 15:10:27 +01:00
|
|
|
'';
|
|
|
|
|
2014-11-03 13:50:43 +01:00
|
|
|
buildInputs = [ cmake boost ogre mygui ois SDL2 libvorbis pkgconfig
|
2014-11-14 18:18:44 +01:00
|
|
|
makeWrapper enet libXcursor
|
2013-01-10 15:10:27 +01:00
|
|
|
];
|
2012-02-13 14:41:57 +01:00
|
|
|
|
2012-02-10 21:24:13 +01:00
|
|
|
enableParallelBuilding = true;
|
|
|
|
|
2014-11-14 18:18:44 +01:00
|
|
|
meta = with stdenv.lib; {
|
2012-02-10 21:24:13 +01:00
|
|
|
description = "Stunt Rally game with Track Editor, based on VDrift and OGRE";
|
|
|
|
homepage = http://code.google.com/p/vdrift-ogre/;
|
2014-11-14 18:18:44 +01:00
|
|
|
license = licenses.gpl3Plus;
|
|
|
|
maintainers = with maintainers; [ pSub ];
|
2012-02-10 21:24:13 +01:00
|
|
|
};
|
|
|
|
}
|