Author: raskin
Date: Fri Apr  8 13:26:10 2011
New Revision: 26754
URL: https://svn.nixos.org/websvn/nix/?rev=26754&sc=1

Log:
OK, now it is runnable...

Modified:
   nixpkgs/trunk/pkgs/games/rigsofrods/default.nix

Modified: nixpkgs/trunk/pkgs/games/rigsofrods/default.nix
==============================================================================
--- nixpkgs/trunk/pkgs/games/rigsofrods/default.nix     Fri Apr  8 13:03:53 
2011        (r26753)
+++ nixpkgs/trunk/pkgs/games/rigsofrods/default.nix     Fri Apr  8 13:26:10 
2011        (r26754)
@@ -1,4 +1,4 @@
-{ fetchsvn, fetchurl, stdenv, wxGTK29, freeimage, cmake, zziplib, mesa, boost, 
+{ fetchsvn, fetchurl, stdenv, wxGTK290, freeimage, cmake, zziplib, mesa, 
boost, 
   pkgconfig, libuuid, lua5, openal, ogre, ois, curl, gtk, pixman, mygui, unzip,
   angelscript
   }:
@@ -40,6 +40,10 @@
     ensureDir $out/bin
     for i in RoR rorconfig RoRViewer; do
       echo '#! ${stdenv.shell}' >> "$out/bin/$i"
+      if [ "$i" = "rorconfig" ]; then
+        echo "[ -d \"\$HOME/.rigsofrods\" ] && cp -r 
'$out/share/rigsofrods/build-dirs/bin/skeleton' \"\$HOME/.rigsofrods\"" >> 
"$out/bin/$i"
+        echo "chmod u+w -R \"\$HOME/.rigsofrods\"" >> "$out/bin/$i"
+      fi
       echo "\"$out/share/rigsofrods/build-dir/bin/$i\"" >> "$out/bin/$i"
       chmod a+x "$out/bin/$i"
     done
@@ -52,7 +56,7 @@
 
   # patches = [ ./wx.patch ];
 
-  buildInputs = [ wxGTK29 freeimage cmake zziplib mesa boost pkgconfig
+  buildInputs = [ wxGTK290 freeimage cmake zziplib mesa boost pkgconfig
     libuuid lua5 openal ogre ois curl gtk mygui unzip angelscript ];
 
   meta = {
_______________________________________________
nix-commits mailing list
[email protected]
http://mail.cs.uu.nl/mailman/listinfo/nix-commits

Reply via email to