at 18.03-beta 41 lines 1.4 kB view raw
1{ fetchurl, fetchFromGitHub, stdenv, wxGTK30, freeimage, cmake, zziplib, libGLU_combined, 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 nativeBuildInputs = [ pkgconfig ]; 29 buildInputs = [ wxGTK30 freeimage cmake zziplib libGLU_combined boost 30 libuuid openal ogre ois curl gtk2 mygui unzip angelscript 31 ogrepaged mysocketw libxcb ]; 32 33 meta = { 34 description = "3D simulator game where you can drive, fly and sail various vehicles"; 35 homepage = http://rigsofrods.sourceforge.net/; 36 license = stdenv.lib.licenses.gpl3; 37 maintainers = with stdenv.lib.maintainers; [viric raskin]; 38 platforms = stdenv.lib.platforms.linux; 39 hydraPlatforms = []; 40 }; 41}