2016-04-15 23:59:45 +01:00
|
|
|
{ fetchurl, fetchFromGitHub, stdenv, wxGTK30, freeimage, cmake, zziplib, mesa, boost,
|
2016-04-15 19:09:41 +01:00
|
|
|
pkgconfig, libuuid, openal, ogre, ois, curl, gtk, pixman, mygui, unzip,
|
2016-04-15 23:59:45 +01:00
|
|
|
angelscript, ogrepaged, mysocketw, libxcb
|
2016-04-15 19:09:41 +01:00
|
|
|
}:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2016-04-15 23:59:45 +01:00
|
|
|
version = "git-20160412";
|
2016-04-15 19:09:41 +01:00
|
|
|
name = "rigsofrods-${version}";
|
|
|
|
|
2016-04-15 23:59:45 +01:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "RigsOfRods";
|
|
|
|
repo = "rigs-of-rods";
|
|
|
|
rev = "1ebd359dbd467b4c3171dd6d054e7d8ec39f78ba";
|
|
|
|
sha256 = "0h71nrgq5r5cnh20c7wl8jzyaf50dj1b5jdrwihnklpsfyfvjlw4";
|
2016-04-15 19:09:41 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
contentPackSrc = fetchurl {
|
|
|
|
url = mirror://sourceforge/rigsofrods/rigsofrods/0.37/content-pack-0.37.zip;
|
|
|
|
sha256 = "0prvn8lxqazadad4mv0nilax9i4vqb9s7dp7mqzvqc0ycmcnf4ps";
|
|
|
|
};
|
|
|
|
|
|
|
|
enableParallelBuilding = true;
|
|
|
|
|
2016-04-15 23:59:45 +01:00
|
|
|
#cmakeFlags = [
|
|
|
|
# "-DROR_USE_CURL=TRUE"
|
|
|
|
# "-DROR_USE_MYGUI=TRUE"
|
|
|
|
# "-DROR_USE_OPNEAL=TRUE"
|
|
|
|
# "-DROR_USE_CAELUM=TRUE"
|
|
|
|
# "-DROR_USE_PAGED=TRUE"
|
|
|
|
# "-DROR_USE_ANGELSCRIPT=TRUE"
|
|
|
|
# "-DROR_USE_SOCKETW=TRUE"
|
|
|
|
# "-DCMAKE_BUILD_TYPE=Release"
|
|
|
|
#];
|
2016-04-15 19:09:41 +01:00
|
|
|
|
|
|
|
installPhase = ''
|
|
|
|
sed -e "s@/usr/local/lib/OGRE@${ogre}/lib/OGRE@" -i ../tools/linux/binaries/plugins.cfg
|
|
|
|
mkdir -p $out/share/rigsofrods
|
2016-04-15 23:59:45 +01:00
|
|
|
cp -r bin/* $out/share/rigsofrods
|
2016-04-15 19:09:41 +01:00
|
|
|
cp ../tools/linux/binaries/plugins.cfg $out/share/rigsofrods
|
|
|
|
mkdir -p $out/bin
|
|
|
|
ln -s $out/share/rigsofrods/{RoR,rorconfig} $out/bin
|
|
|
|
cd $out/share/rigsofrods
|
|
|
|
mkdir packs
|
|
|
|
cd packs
|
|
|
|
unzip "${contentPackSrc}"
|
|
|
|
'';
|
|
|
|
|
2016-04-15 23:59:45 +01:00
|
|
|
#patches = [ ./paths.patch ];
|
2016-04-15 19:09:41 +01:00
|
|
|
|
2016-04-15 23:59:45 +01:00
|
|
|
buildInputs = [ wxGTK30 freeimage cmake zziplib mesa boost pkgconfig
|
2016-04-15 19:09:41 +01:00
|
|
|
libuuid openal ogre ois curl gtk mygui unzip angelscript
|
2016-04-15 23:59:45 +01:00
|
|
|
ogrepaged mysocketw libxcb ];
|
2016-04-15 19:09:41 +01:00
|
|
|
|
|
|
|
meta = {
|
|
|
|
description = "3D simulator game where you can drive, fly and sail various vehicles";
|
|
|
|
homepage = http://rigsofrods.sourceforge.net/;
|
|
|
|
license = stdenv.lib.licenses.gpl3;
|
|
|
|
maintainers = with stdenv.lib.maintainers; [viric raskin];
|
|
|
|
platforms = stdenv.lib.platforms.linux;
|
|
|
|
hydraPlatforms = [];
|
|
|
|
};
|
|
|
|
}
|