summary refs log tree commit diff
path: root/pkgs/games/stuntrally
diff options
context:
space:
mode:
authorLluís Batlle i Rossell <viric@vicerveza.homeunix.net>2012-02-13 13:41:57 +0000
committerLluís Batlle i Rossell <viric@vicerveza.homeunix.net>2012-02-13 13:41:57 +0000
commit1a5c12c34cae877b053ddddff291995839ea832f (patch)
treebd2c64df5282f1fb8d83daff8644f72839095195 /pkgs/games/stuntrally
parent32c44363356921351e5ff4555c21a158d1f5ce10 (diff)
downloadnixpkgs-1a5c12c34cae877b053ddddff291995839ea832f.tar
nixpkgs-1a5c12c34cae877b053ddddff291995839ea832f.tar.gz
nixpkgs-1a5c12c34cae877b053ddddff291995839ea832f.tar.bz2
nixpkgs-1a5c12c34cae877b053ddddff291995839ea832f.tar.lz
nixpkgs-1a5c12c34cae877b053ddddff291995839ea832f.tar.xz
nixpkgs-1a5c12c34cae877b053ddddff291995839ea832f.tar.zst
nixpkgs-1a5c12c34cae877b053ddddff291995839ea832f.zip
I made stuntrally work, thanks to adding the nvidia_cg_toolkit to ogre.
svn path=/nixpkgs/trunk/; revision=32257
Diffstat (limited to 'pkgs/games/stuntrally')
-rw-r--r--pkgs/games/stuntrally/default.nix14
1 files changed, 10 insertions, 4 deletions
diff --git a/pkgs/games/stuntrally/default.nix b/pkgs/games/stuntrally/default.nix
index 14db3dd52b8..69609b1bbfb 100644
--- a/pkgs/games/stuntrally/default.nix
+++ b/pkgs/games/stuntrally/default.nix
@@ -1,6 +1,5 @@
-{ fetchurl, stdenv, cmake, boost, ogre, myguiSvn, ois, SDL, libvorbis, pkgconfig }:
-
-throw "Stunt Rally needs ogre with cg support at runtime - we have to package nvidia cg"
+{ fetchurl, stdenv, cmake, boost, ogre, myguiSvn, ois, SDL, libvorbis, pkgconfig
+, makeWrapper }:
 
 stdenv.mkDerivation rec {
   name = "stunt-rally-1.4";
@@ -10,7 +9,14 @@ stdenv.mkDerivation rec {
     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;