2019-11-10 17:44:34 +01:00
|
|
|
{ fetchFromGitHub, stdenv, wxGTK30, freeimage, cmake, zziplib, libGLU, libGL, boost,
|
2018-07-21 02:44:44 +02:00
|
|
|
pkgconfig, libuuid, openal, ogre, ois, curl, gtk2, mygui, unzip,
|
2016-04-16 00:59:45 +02:00
|
|
|
angelscript, ogrepaged, mysocketw, libxcb
|
2016-04-15 20:09:41 +02:00
|
|
|
}:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2017-06-12 10:42:05 +02:00
|
|
|
version = "0.4.7.0";
|
2019-08-15 14:41:18 +02:00
|
|
|
pname = "rigsofrods";
|
2016-04-15 20:09:41 +02:00
|
|
|
|
2016-04-16 00:59:45 +02:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "RigsOfRods";
|
|
|
|
repo = "rigs-of-rods";
|
2017-06-12 10:42:05 +02:00
|
|
|
rev = version;
|
|
|
|
sha256 = "0cb1il7qm45kfhh6h6jwfpxvjlh2dmg8z1yz9kj4d6098myf2lg4";
|
2016-04-15 20:09:41 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
enableParallelBuilding = true;
|
|
|
|
|
|
|
|
installPhase = ''
|
|
|
|
sed -e "s@/usr/local/lib/OGRE@${ogre}/lib/OGRE@" -i ../tools/linux/binaries/plugins.cfg
|
|
|
|
mkdir -p $out/share/rigsofrods
|
2016-04-16 00:59:45 +02:00
|
|
|
cp -r bin/* $out/share/rigsofrods
|
2016-04-15 20:09:41 +02:00
|
|
|
cp ../tools/linux/binaries/plugins.cfg $out/share/rigsofrods
|
|
|
|
mkdir -p $out/bin
|
2016-04-18 11:56:43 +02:00
|
|
|
ln -s $out/share/rigsofrods/{RoR,RoRConfig} $out/bin
|
2016-04-15 20:09:41 +02:00
|
|
|
'';
|
|
|
|
|
2017-09-05 23:26:13 +02:00
|
|
|
nativeBuildInputs = [ pkgconfig ];
|
2019-11-10 17:44:34 +01:00
|
|
|
buildInputs = [ wxGTK30 freeimage cmake zziplib libGLU libGL boost
|
2016-09-11 23:24:51 +02:00
|
|
|
libuuid openal ogre ois curl gtk2 mygui unzip angelscript
|
2016-04-16 00:59:45 +02:00
|
|
|
ogrepaged mysocketw libxcb ];
|
2016-04-15 20:09:41 +02: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;
|
2018-07-22 21:50:19 +02:00
|
|
|
maintainers = with stdenv.lib.maintainers; [raskin];
|
2016-04-15 20:09:41 +02:00
|
|
|
platforms = stdenv.lib.platforms.linux;
|
|
|
|
hydraPlatforms = [];
|
|
|
|
};
|
|
|
|
}
|