2016-04-01 11:16:02 +02:00
|
|
|
{ fetchurl, stdenv, SDL, freealut, SDL_image, openal, physfs, zlib, mesa, glew }:
|
2011-03-30 20:45:11 +02:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2016-04-01 11:16:02 +02:00
|
|
|
name = "trigger-rally-0.6.3";
|
2011-03-30 20:45:11 +02:00
|
|
|
|
|
|
|
src = fetchurl {
|
2016-04-01 11:16:02 +02:00
|
|
|
url = "mirror://sourceforge/trigger-rally/${name}.tar.gz";
|
|
|
|
sha256 = "103mv4vpq335mrmgzlhahrfncq7ds3b5ip5a52967rv2j6hhzpvy";
|
2011-03-30 20:45:11 +02:00
|
|
|
};
|
|
|
|
|
2016-04-01 11:16:02 +02:00
|
|
|
buildInputs = [ SDL freealut SDL_image openal physfs zlib mesa glew ];
|
2011-03-30 20:45:11 +02:00
|
|
|
|
|
|
|
preConfigure = ''
|
2016-04-01 11:16:02 +02:00
|
|
|
sed s,/usr/local,$out, -i bin/*defs
|
2011-03-30 20:45:11 +02:00
|
|
|
|
2016-04-01 11:16:02 +02:00
|
|
|
cd src
|
|
|
|
export makeFlags="$makeFlags prefix=$out"
|
2011-03-30 20:45:11 +02:00
|
|
|
'';
|
|
|
|
|
2016-04-01 11:16:02 +02:00
|
|
|
enableParallelBuilding = true;
|
2011-03-30 20:45:11 +02:00
|
|
|
|
2016-04-01 11:16:02 +02:00
|
|
|
postInstall = ''
|
|
|
|
mkdir -p $out/bin
|
|
|
|
cat <<EOF > $out/bin/trigger-rally
|
|
|
|
#!/bin/sh
|
|
|
|
exec $out/games/trigger-rally "$@"
|
|
|
|
EOF
|
|
|
|
chmod +x $out/bin/trigger-rally
|
2011-03-30 20:45:11 +02:00
|
|
|
'';
|
|
|
|
|
2016-04-01 11:16:02 +02:00
|
|
|
# search.patch : fix c++ error.
|
|
|
|
patches = [ ./search.patch ];
|
|
|
|
|
2011-03-30 20:45:11 +02:00
|
|
|
meta = {
|
|
|
|
description = "Rally";
|
|
|
|
homepage = http://trigger-rally.sourceforge.net/;
|
2014-06-19 06:19:00 +02:00
|
|
|
license = stdenv.lib.licenses.gpl2;
|
2011-03-30 20:45:11 +02:00
|
|
|
maintainers = with stdenv.lib.maintainers; [viric];
|
|
|
|
platforms = with stdenv.lib.platforms; linux;
|
|
|
|
};
|
|
|
|
}
|