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