From 15b3a0844849e24e189d7739afcbee116af906a9 Mon Sep 17 00:00:00 2001 From: Michael Raskin <7c6f434c@mail.ru> Date: Sat, 9 Apr 2011 15:51:24 +0000 Subject: [PATCH] Install content pack svn path=/nixpkgs/trunk/; revision=26767 --- pkgs/games/rigsofrods/default.nix | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/pkgs/games/rigsofrods/default.nix b/pkgs/games/rigsofrods/default.nix index 72372f6e13ad..8fc623184ed9 100644 --- a/pkgs/games/rigsofrods/default.nix +++ b/pkgs/games/rigsofrods/default.nix @@ -18,6 +18,11 @@ stdenv.mkDerivation rec { sha256 = "03mxmxpfdlsri0j3nqgyj2pc4gpzs8zq8qgg6qhnyazi7j95j4mk"; }; + contentPackSrc = fetchurl { + url = mirror://sourceforge/rigsofrods/rigsofrods/0.37/content-pack-0.37.zip; + sha256 = "0prvn8lxqazadad4mv0nilax9i4vqb9s7dp7mqzvqc0ycmcnf4ps"; + }; + enableParallelBuilding = true; cmakeFlags = [ @@ -28,7 +33,7 @@ stdenv.mkDerivation rec { # "-DROR_USE_MOFILEREADER=TRUE" # "-DROR_USE_CAELUM=TRUE" # "-DROR_USE_PAGED=TRUE" - # "-DROR_USE_ANGELSCRIPT=TRUE" + "-DROR_USE_ANGELSCRIPT=TRUE" # "-DROR_USE_SOCKETW=TRUE" ]; @@ -47,6 +52,8 @@ stdenv.mkDerivation rec { echo "\"$out/share/rigsofrods/build-dir/bin/$i\"" >> "$out/bin/$i" chmod a+x "$out/bin/$i" done + cd $out/share/rigsofrods/build-dir/bin/ + unzip "${contentPackSrc}" ''; preConfigure = ''