2011-03-30 19:45:11 +01:00
|
|
|
{ fetchurl, stdenv, SDL, freealut, SDL_image, openal, physfs, zlib, mesa, jam }:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2015-04-17 09:45:59 +01:00
|
|
|
name = "trigger-rally-0.6.1";
|
2011-03-30 19:45:11 +01:00
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "mirror://sourceforge/trigger-rally/${name}-src.tar.bz2";
|
2015-04-17 09:45:59 +01:00
|
|
|
sha256 = "1fvb6dl5bwclmx0y8ygyrfn8jczc5kxawxlyv6mp592smb5x5hjs";
|
2011-03-30 19:45:11 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
srcData = fetchurl {
|
2015-04-17 09:45:59 +01:00
|
|
|
url = "mirror://sourceforge/trigger-rally/${name}-data.tar.bz2";
|
|
|
|
sha256 = "04f9d74gz5xvfx6pnmbfxqhp0kd1p16j5lrgcq12wxvla6py4qaw";
|
2011-03-30 19:45:11 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
buildInputs = [ SDL freealut SDL_image openal physfs zlib mesa jam ];
|
|
|
|
|
|
|
|
preConfigure = ''
|
2015-04-17 09:45:59 +01:00
|
|
|
configureFlags="$configureFlags --datadir=$out/share/${name}-data"
|
2011-03-30 19:45:11 +01:00
|
|
|
'';
|
|
|
|
|
|
|
|
# It has some problems installing the README file, so... out.
|
|
|
|
patchPhase = ''
|
|
|
|
sed -i /README/d Jamfile
|
|
|
|
'';
|
|
|
|
|
|
|
|
buildPhase = "jam";
|
|
|
|
|
|
|
|
installPhase = ''
|
|
|
|
jam install
|
2012-01-18 20:16:00 +00:00
|
|
|
mkdir -p $out/share
|
2011-03-30 19:45:11 +01:00
|
|
|
pushd $out/share
|
|
|
|
tar xf $srcData
|
|
|
|
'';
|
|
|
|
|
|
|
|
meta = {
|
|
|
|
description = "Rally";
|
|
|
|
homepage = http://trigger-rally.sourceforge.net/;
|
2014-06-19 05:19:00 +01:00
|
|
|
license = stdenv.lib.licenses.gpl2;
|
2011-03-30 19:45:11 +01:00
|
|
|
maintainers = with stdenv.lib.maintainers; [viric];
|
|
|
|
platforms = with stdenv.lib.platforms; linux;
|
|
|
|
};
|
|
|
|
}
|