1 { lib, fetchurl, stdenv, runtimeShell, SDL2, freealut, SDL2_image, openal, physfs
2 , zlib, libGLU, libGL, glew, tinyxml-2 }:
4 stdenv.mkDerivation rec {
5 pname = "trigger-rally";
9 url = "mirror://sourceforge/trigger-rally/${pname}-${version}.tar.gz";
10 sha256 = "016bc2hczqscfmngacim870hjcsmwl8r3aq8x03vpf22s49nw23z";
27 sed s,/usr/local,$out, -i bin/*defs
31 sed s,lSDL2main,lSDL2, -i GNUmakefile
32 export NIX_CFLAGS_COMPILE="$NIX_CFLAGS_COMPILE -I${SDL2.dev}/include/SDL2"
33 export makeFlags="$makeFlags prefix=$out"
36 enableParallelBuilding = true;
40 cat <<EOF > $out/bin/trigger-rally
42 exec $out/games/trigger-rally "$@"
44 chmod +x $out/bin/trigger-rally
48 description = "A fast-paced single-player racing game";
49 homepage = "http://trigger-rally.sourceforge.net/";
50 license = lib.licenses.gpl2;
51 maintainers = with lib.maintainers; [viric];
52 platforms = with lib.platforms; linux;