diff options
Diffstat (limited to 'pkgs/games/rigsofrods/default.nix')
-rw-r--r-- | pkgs/games/rigsofrods/default.nix | 40 |
1 files changed, 40 insertions, 0 deletions
diff --git a/pkgs/games/rigsofrods/default.nix b/pkgs/games/rigsofrods/default.nix new file mode 100644 index 00000000000..c4477ab01d9 --- /dev/null +++ b/pkgs/games/rigsofrods/default.nix @@ -0,0 +1,40 @@ +{ fetchurl, fetchFromGitHub, stdenv, wxGTK30, freeimage, cmake, zziplib, mesa, boost, + pkgconfig, libuuid, openal, ogre, ois, curl, gtk, pixman, mygui, unzip, + angelscript, ogrepaged, mysocketw, libxcb + }: + +stdenv.mkDerivation rec { + version = "git-20160412"; + name = "rigsofrods-${version}"; + + src = fetchFromGitHub { + owner = "RigsOfRods"; + repo = "rigs-of-rods"; + rev = "1ebd359dbd467b4c3171dd6d054e7d8ec39f78ba"; + sha256 = "0h71nrgq5r5cnh20c7wl8jzyaf50dj1b5jdrwihnklpsfyfvjlw4"; + }; + + enableParallelBuilding = true; + + installPhase = '' + sed -e "s@/usr/local/lib/OGRE@${ogre}/lib/OGRE@" -i ../tools/linux/binaries/plugins.cfg + mkdir -p $out/share/rigsofrods + cp -r bin/* $out/share/rigsofrods + cp ../tools/linux/binaries/plugins.cfg $out/share/rigsofrods + mkdir -p $out/bin + ln -s $out/share/rigsofrods/{RoR,RoRConfig} $out/bin + ''; + + buildInputs = [ wxGTK30 freeimage cmake zziplib mesa boost pkgconfig + libuuid openal ogre ois curl gtk mygui unzip angelscript + ogrepaged mysocketw libxcb ]; + + meta = { + description = "3D simulator game where you can drive, fly and sail various vehicles"; + homepage = http://rigsofrods.sourceforge.net/; + license = stdenv.lib.licenses.gpl3; + maintainers = with stdenv.lib.maintainers; [viric raskin]; + platforms = stdenv.lib.platforms.linux; + hydraPlatforms = []; + }; +} |