From f4af7c315013c461185a38d91eca3dc1bd6d0ec7 Mon Sep 17 00:00:00 2001 From: Michael Raskin <7c6f434c@mail.ru> Date: Fri, 8 Apr 2011 13:26:10 +0000 Subject: [PATCH] OK, now it is runnable... svn path=/nixpkgs/trunk/; revision=26754 --- pkgs/games/rigsofrods/default.nix | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/pkgs/games/rigsofrods/default.nix b/pkgs/games/rigsofrods/default.nix index caa54573cf29..c5ca094c78e1 100644 --- a/pkgs/games/rigsofrods/default.nix +++ b/pkgs/games/rigsofrods/default.nix @@ -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 @@ stdenv.mkDerivation rec { 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 @@ stdenv.mkDerivation rec { # 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 = {