1 { fetchFromGitHub, lib, stdenv, wxGTK30, freeimage, cmake, zziplib, libGLU, libGL, boost,
2 pkg-config, libuuid, openal, ogre, ois, curl, gtk2, mygui, unzip,
3 angelscript, ogrepaged, mysocketw, libxcb
6 stdenv.mkDerivation rec {
10 src = fetchFromGitHub {
12 repo = "rigs-of-rods";
14 sha256 = "0cb1il7qm45kfhh6h6jwfpxvjlh2dmg8z1yz9kj4d6098myf2lg4";
18 sed -e "s@/usr/local/lib/OGRE@${ogre}/lib/OGRE@" -i ../tools/linux/binaries/plugins.cfg
19 mkdir -p $out/share/rigsofrods
20 cp -r bin/* $out/share/rigsofrods
21 cp ../tools/linux/binaries/plugins.cfg $out/share/rigsofrods
23 ln -s $out/share/rigsofrods/{RoR,RoRConfig} $out/bin
26 nativeBuildInputs = [ cmake pkg-config unzip ];
27 buildInputs = [ wxGTK30 freeimage zziplib libGLU libGL boost
28 libuuid openal ogre ois curl gtk2 mygui angelscript
29 ogrepaged mysocketw libxcb ];
32 description = "3D simulator game where you can drive, fly and sail various vehicles";
33 homepage = "http://rigsofrods.sourceforge.net/";
34 license = licenses.gpl3;
35 maintainers = with maintainers; [ raskin ];
36 platforms = platforms.linux;