2012-02-13 14:41:57 +01:00
|
|
|
{ fetchurl, stdenv, cmake, boost, ogre, myguiSvn, ois, SDL, libvorbis, pkgconfig
|
|
|
|
, makeWrapper }:
|
2012-02-10 22:53:59 +01:00
|
|
|
|
2012-02-10 21:24:13 +01:00
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
name = "stunt-rally-1.4";
|
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = mirror://sourceforge/stuntrally/StuntRally-1.4-sources.tar.bz2;
|
|
|
|
sha256 = "1am5af4l1qliyrq1183sqvwzqwcjx0v6gkzsxhfmk6ygp7yhw7kq";
|
|
|
|
};
|
|
|
|
|
2012-02-13 14:41:57 +01:00
|
|
|
buildInputs = [ cmake boost ogre myguiSvn ois SDL libvorbis pkgconfig makeWrapper ];
|
|
|
|
|
|
|
|
# I think they suppose cmake should give them OGRE_PLUGIN_DIR defined, but
|
|
|
|
# the cmake code I saw is not ready for that. Therefore, we use the env var.
|
|
|
|
postInstall = ''
|
|
|
|
wrapProgram $out/bin/stuntrally --set OGRE_PLUGIN_DIR ${ogre}/lib/OGRE
|
|
|
|
wrapProgram $out/bin/sr-editor --set OGRE_PLUGIN_DIR ${ogre}/lib/OGRE
|
|
|
|
'';
|
2012-02-10 21:24:13 +01:00
|
|
|
|
|
|
|
enableParallelBuilding = true;
|
|
|
|
|
|
|
|
meta = {
|
|
|
|
description = "Stunt Rally game with Track Editor, based on VDrift and OGRE";
|
|
|
|
homepage = http://code.google.com/p/vdrift-ogre/;
|
|
|
|
license = "GPLv3+";
|
|
|
|
};
|
|
|
|
}
|