2021-01-15 05:31:39 +01:00
|
|
|
{ fetchFromGitHub, lib, stdenv, wxGTK30, freeimage, cmake, zziplib, libGLU, libGL, boost,
|
2020-12-31 08:48:55 +01:00
|
|
|
pkg-config, 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
|
|
|
};
|
|
|
|
|
|
|
|
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
|
|
|
'';
|
|
|
|
|
2021-02-20 22:01:53 +01:00
|
|
|
nativeBuildInputs = [ cmake pkg-config unzip ];
|
2020-12-31 08:48:55 +01:00
|
|
|
buildInputs = [ wxGTK30 freeimage zziplib libGLU libGL boost
|
2021-02-20 22:01:53 +01:00
|
|
|
libuuid openal ogre ois curl gtk2 mygui angelscript
|
2016-04-16 00:59:45 +02:00
|
|
|
ogrepaged mysocketw libxcb ];
|
2016-04-15 20:09:41 +02:00
|
|
|
|
2021-01-15 05:31:39 +01:00
|
|
|
meta = with lib; {
|
2016-04-15 20:09:41 +02:00
|
|
|
description = "3D simulator game where you can drive, fly and sail various vehicles";
|
2020-04-01 03:11:51 +02:00
|
|
|
homepage = "http://rigsofrods.sourceforge.net/";
|
2020-12-31 08:48:55 +01:00
|
|
|
license = licenses.gpl3;
|
|
|
|
maintainers = with maintainers; [ raskin ];
|
|
|
|
platforms = platforms.linux;
|
2016-04-15 20:09:41 +02:00
|
|
|
hydraPlatforms = [];
|
|
|
|
};
|
|
|
|
}
|