at 23.05-pre 39 lines 1.3 kB view raw
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 4 }: 5 6stdenv.mkDerivation rec { 7 version = "0.4.7.0"; 8 pname = "rigsofrods"; 9 10 src = fetchFromGitHub { 11 owner = "RigsOfRods"; 12 repo = "rigs-of-rods"; 13 rev = version; 14 sha256 = "0cb1il7qm45kfhh6h6jwfpxvjlh2dmg8z1yz9kj4d6098myf2lg4"; 15 }; 16 17 installPhase = '' 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 22 mkdir -p $out/bin 23 ln -s $out/share/rigsofrods/{RoR,RoRConfig} $out/bin 24 ''; 25 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 ]; 30 31 meta = with lib; { 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; 37 hydraPlatforms = []; 38 }; 39}