trigger: update to 0.6.5

This commit is contained in:
Lluís Batlle i Rossell 2017-02-16 22:25:23 +01:00
parent 0c42efd9d7
commit 1e7da9ec78

View File

@ -1,20 +1,20 @@
{ fetchurl, stdenv, SDL, freealut, SDL_image, openal, physfs, zlib, mesa, glew }:
{ fetchurl, stdenv, SDL2, freealut, SDL2_image, openal, physfs, zlib, mesa, glew }:
stdenv.mkDerivation rec {
name = "trigger-rally-0.6.3";
name = "trigger-rally-0.6.5";
src = fetchurl {
url = "mirror://sourceforge/trigger-rally/${name}.tar.gz";
sha256 = "103mv4vpq335mrmgzlhahrfncq7ds3b5ip5a52967rv2j6hhzpvy";
sha256 = "095s4sx0s1ijlarkh84rvzlv4nxh9llrsal1lb3m3pf0v228gnzj";
};
buildInputs = [ SDL freealut SDL_image openal physfs zlib mesa glew ];
buildInputs = [ SDL2 freealut SDL2_image openal physfs zlib mesa glew ];
preConfigure = ''
sed s,/usr/local,$out, -i bin/*defs
cd src
export NIX_CFLAGS_COMPILE="$NIX_CFLAGS_COMPILE -I${SDL.dev}/include/SDL"
export NIX_CFLAGS_COMPILE="$NIX_CFLAGS_COMPILE -I${SDL2.dev}/include/SDL2"
export makeFlags="$makeFlags prefix=$out"
'';
@ -29,9 +29,6 @@ stdenv.mkDerivation rec {
chmod +x $out/bin/trigger-rally
'';
# search.patch : fix c++ error.
patches = [ ./search.patch ];
meta = {
description = "Rally";
homepage = http://trigger-rally.sourceforge.net/;