1{ fetchurl, fetchFromGitHub, stdenv, wxGTK30, freeimage, cmake, zziplib, mesa, boost,
2 pkgconfig, libuuid, openal, ogre, ois, curl, gtk2, pixman, mygui, unzip,
3 angelscript, ogrepaged, mysocketw, libxcb
4 }:
5
6stdenv.mkDerivation rec {
7 version = "0.4.7.0";
8 name = "rigsofrods-${version}";
9
10 src = fetchFromGitHub {
11 owner = "RigsOfRods";
12 repo = "rigs-of-rods";
13 rev = version;
14 sha256 = "0cb1il7qm45kfhh6h6jwfpxvjlh2dmg8z1yz9kj4d6098myf2lg4";
15 };
16
17 enableParallelBuilding = true;
18
19 installPhase = ''
20 sed -e "s@/usr/local/lib/OGRE@${ogre}/lib/OGRE@" -i ../tools/linux/binaries/plugins.cfg
21 mkdir -p $out/share/rigsofrods
22 cp -r bin/* $out/share/rigsofrods
23 cp ../tools/linux/binaries/plugins.cfg $out/share/rigsofrods
24 mkdir -p $out/bin
25 ln -s $out/share/rigsofrods/{RoR,RoRConfig} $out/bin
26 '';
27
28 buildInputs = [ wxGTK30 freeimage cmake zziplib mesa boost pkgconfig
29 libuuid openal ogre ois curl gtk2 mygui unzip angelscript
30 ogrepaged mysocketw libxcb ];
31
32 meta = {
33 description = "3D simulator game where you can drive, fly and sail various vehicles";
34 homepage = http://rigsofrods.sourceforge.net/;
35 license = stdenv.lib.licenses.gpl3;
36 maintainers = with stdenv.lib.maintainers; [viric raskin];
37 platforms = stdenv.lib.platforms.linux;
38 hydraPlatforms = [];
39 };
40}