nixpkgs/pkgs/games/rigsofrods/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

43 lines
1.3 KiB
Nix
Raw Normal View History

2022-12-03 03:28:32 +01:00
{ fetchFromGitHub, lib, stdenv, wxGTK30, freeimage, cmake, zziplib, libGLU, libGL, boost,
2022-11-25 23:23:45 +01:00
pkg-config, libuuid, openal, ogre, ois, curl, gtk3, mygui, unzip,
angelscript, ogrepaged, mysocketw, libxcb
}:
stdenv.mkDerivation rec {
2017-06-12 10:42:05 +02:00
version = "0.4.7.0";
pname = "rigsofrods";
src = fetchFromGitHub {
owner = "RigsOfRods";
repo = "rigs-of-rods";
2017-06-12 10:42:05 +02:00
rev = version;
sha256 = "0cb1il7qm45kfhh6h6jwfpxvjlh2dmg8z1yz9kj4d6098myf2lg4";
};
2022-11-25 23:23:45 +01:00
patches = [
./gtk3.patch
];
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
'';
nativeBuildInputs = [ cmake pkg-config unzip ];
2022-12-03 03:28:32 +01:00
buildInputs = [ wxGTK30 freeimage zziplib libGLU libGL boost
2022-11-25 23:23:45 +01:00
libuuid openal ogre ois curl gtk3 mygui angelscript
ogrepaged mysocketw libxcb ];
2021-01-15 05:31:39 +01:00
meta = with lib; {
description = "3D simulator game where you can drive, fly and sail various vehicles";
homepage = "http://rigsofrods.sourceforge.net/";
license = licenses.gpl3;
maintainers = with maintainers; [ raskin ];
platforms = platforms.linux;
};
}