I made stuntrally work, thanks to adding the nvidia_cg_toolkit to ogre.
svn path=/nixpkgs/trunk/; revision=32257
This commit is contained in:
@@ -5,6 +5,7 @@ x@{builderDefsPackage
|
|||||||
, xproto, libX11, libXmu, libSM, pkgconfig
|
, xproto, libX11, libXmu, libSM, pkgconfig
|
||||||
, libXxf86vm, xf86vidmodeproto, libICE
|
, libXxf86vm, xf86vidmodeproto, libICE
|
||||||
, renderproto, libXrender
|
, renderproto, libXrender
|
||||||
|
, nvidia_cg_toolkit
|
||||||
, ...}:
|
, ...}:
|
||||||
builderDefsPackage
|
builderDefsPackage
|
||||||
(a :
|
(a :
|
||||||
|
|||||||
@@ -1,6 +1,5 @@
|
|||||||
{ fetchurl, stdenv, cmake, boost, ogre, myguiSvn, ois, SDL, libvorbis, pkgconfig }:
|
{ fetchurl, stdenv, cmake, boost, ogre, myguiSvn, ois, SDL, libvorbis, pkgconfig
|
||||||
|
, makeWrapper }:
|
||||||
throw "Stunt Rally needs ogre with cg support at runtime - we have to package nvidia cg"
|
|
||||||
|
|
||||||
stdenv.mkDerivation rec {
|
stdenv.mkDerivation rec {
|
||||||
name = "stunt-rally-1.4";
|
name = "stunt-rally-1.4";
|
||||||
@@ -10,7 +9,14 @@ stdenv.mkDerivation rec {
|
|||||||
sha256 = "1am5af4l1qliyrq1183sqvwzqwcjx0v6gkzsxhfmk6ygp7yhw7kq";
|
sha256 = "1am5af4l1qliyrq1183sqvwzqwcjx0v6gkzsxhfmk6ygp7yhw7kq";
|
||||||
};
|
};
|
||||||
|
|
||||||
buildInputs = [ cmake boost ogre myguiSvn ois SDL libvorbis pkgconfig ];
|
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
|
||||||
|
'';
|
||||||
|
|
||||||
enableParallelBuilding = true;
|
enableParallelBuilding = true;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user