at 16.09-beta 40 lines 1.4 kB view raw
1{ fetchurl, fetchFromGitHub, stdenv, wxGTK30, freeimage, cmake, zziplib, mesa, boost, 2 pkgconfig, libuuid, openal, ogre, ois, curl, gtk, pixman, mygui, unzip, 3 angelscript, ogrepaged, mysocketw, libxcb 4 }: 5 6stdenv.mkDerivation rec { 7 version = "git-20160412"; 8 name = "rigsofrods-${version}"; 9 10 src = fetchFromGitHub { 11 owner = "RigsOfRods"; 12 repo = "rigs-of-rods"; 13 rev = "1ebd359dbd467b4c3171dd6d054e7d8ec39f78ba"; 14 sha256 = "0h71nrgq5r5cnh20c7wl8jzyaf50dj1b5jdrwihnklpsfyfvjlw4"; 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 gtk 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}