nixpkgs/pkgs/games/stuntrally/default.nix

39 lines
1 KiB
Nix
Raw Normal View History

2014-11-03 12:50:43 +00:00
{ fetchgit, stdenv, cmake, boost, ogre, mygui, ois, SDL2, libvorbis, pkgconfig
, makeWrapper, enet, libXcursor }:
stdenv.mkDerivation rec {
2014-11-14 17:18:44 +00:00
name = "stunt-rally-${version}";
version = "2.5";
src = fetchgit {
url = git://github.com/stuntrally/stuntrally.git;
2014-11-14 17:18:44 +00:00
rev = "refs/tags/${version}";
sha256 = "1lsh7z7sjfwpdybg6vbwqx1zxsgbfp2n60n7xl33v225p32qh1qf";
};
tracks = fetchgit {
url = git://github.com/stuntrally/tracks.git;
2014-11-14 17:18:44 +00:00
rev = "refs/tags/${version}";
sha256 = "1614j6q1d2f69l58kkqndndvf6svcghhw8pzc2s1plf6k87h67mg";
};
preConfigure = ''
2014-11-03 12:50:43 +00:00
cp -R ${tracks} data/tracks
chmod u+rwX -R data
'';
2014-11-03 12:50:43 +00:00
buildInputs = [ cmake boost ogre mygui ois SDL2 libvorbis pkgconfig
2014-11-14 17:18:44 +00:00
makeWrapper enet libXcursor
];
enableParallelBuilding = true;
2014-11-14 17:18:44 +00:00
meta = with stdenv.lib; {
description = "Stunt Rally game with Track Editor, based on VDrift and OGRE";
homepage = http://code.google.com/p/vdrift-ogre/;
2014-11-14 17:18:44 +00:00
license = licenses.gpl3Plus;
maintainers = with maintainers; [ pSub ];
platforms = platforms.linux;
};
}