summary refs log tree commit diff
path: root/pkgs/games/stuntrally
diff options
context:
space:
mode:
authorLluís Batlle i Rossell <viric@viric.name>2013-01-10 15:10:27 +0100
committerLluís Batlle i Rossell <viric@viric.name>2013-01-10 15:11:12 +0100
commit7e1d0c12a3e9e8cc2d4a78ba9a6039c20f3eca32 (patch)
tree1a6a0463e172ee4e0062c3e37c85c7fae9bf7ba0 /pkgs/games/stuntrally
parent7242b4994e98a0d88b17eb40e7393bb8340bf0e3 (diff)
downloadnixpkgs-7e1d0c12a3e9e8cc2d4a78ba9a6039c20f3eca32.tar
nixpkgs-7e1d0c12a3e9e8cc2d4a78ba9a6039c20f3eca32.tar.gz
nixpkgs-7e1d0c12a3e9e8cc2d4a78ba9a6039c20f3eca32.tar.bz2
nixpkgs-7e1d0c12a3e9e8cc2d4a78ba9a6039c20f3eca32.tar.lz
nixpkgs-7e1d0c12a3e9e8cc2d4a78ba9a6039c20f3eca32.tar.xz
nixpkgs-7e1d0c12a3e9e8cc2d4a78ba9a6039c20f3eca32.tar.zst
nixpkgs-7e1d0c12a3e9e8cc2d4a78ba9a6039c20f3eca32.zip
stuntrally: updating from 1.4 to 1.8
I updated ogre and mygui, too. Now myguiSvn is older than mygui.
We should check if this commit breaks other games that use ogre (ror?)
Diffstat (limited to 'pkgs/games/stuntrally')
-rw-r--r--pkgs/games/stuntrally/default.nix32
1 files changed, 25 insertions, 7 deletions
diff --git a/pkgs/games/stuntrally/default.nix b/pkgs/games/stuntrally/default.nix
index 69609b1bbfb..31fd25a5150 100644
--- a/pkgs/games/stuntrally/default.nix
+++ b/pkgs/games/stuntrally/default.nix
@@ -1,15 +1,33 @@
-{ fetchurl, stdenv, cmake, boost, ogre, myguiSvn, ois, SDL, libvorbis, pkgconfig
-, makeWrapper }:
+{ fetchgit, stdenv, cmake, boost, ogre, mygui, ois, SDL, libvorbis, pkgconfig
+, makeWrapper, enet, libXcursor }:
 
 stdenv.mkDerivation rec {
-  name = "stunt-rally-1.4";
+  name = "stunt-rally-1.8";
 
-  src = fetchurl {
-    url = mirror://sourceforge/stuntrally/StuntRally-1.4-sources.tar.bz2;
-    sha256 = "1am5af4l1qliyrq1183sqvwzqwcjx0v6gkzsxhfmk6ygp7yhw7kq";
+  src = fetchgit {
+    url = git://github.com/stuntrally/stuntrally.git;
+    rev = "refs/tags/1.8";
+    sha256 = "0p8p83xx8q33kymsqnmxqca4jdfyg9rwrsac790z56gdbc7gnahm";
   };
 
-  buildInputs = [ cmake boost ogre myguiSvn ois SDL libvorbis pkgconfig makeWrapper ];
+  tracks = fetchgit {
+    url = git://github.com/stuntrally/tracks.git;
+    rev = "refs/tags/1.8";
+    sha256 = "1gcrs21nn0v3hvhrw8dc0wh1knn5qh66cjx7a1igiciiadmi2s3l";
+  };
+
+  patchPhase = ''
+    sed -i 's/materials/materials material_templates/' data/CMakeLists.txt
+  '';
+
+  preConfigure = ''
+    mkdir data/tracks
+    cp -R $tracks/* data/tracks
+  '';
+
+  buildInputs = [ cmake boost ogre mygui ois SDL libvorbis pkgconfig makeWrapper enet
+    libXcursor
+  ];
 
   # 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.