From 8cbba14dbe34dd2d7f838e4322976c8350f02b6f Mon Sep 17 00:00:00 2001 From: Ricardo Ardissone Date: Sat, 4 Mar 2017 12:24:46 -0300 Subject: [PATCH] tome4: 1.4.6 -> 1.4.9 --- pkgs/games/tome4/default.nix | 33 ++++++++++++++++++++++----------- 1 file changed, 22 insertions(+), 11 deletions(-) diff --git a/pkgs/games/tome4/default.nix b/pkgs/games/tome4/default.nix index b0fd8072566e..f13190abdf70 100644 --- a/pkgs/games/tome4/default.nix +++ b/pkgs/games/tome4/default.nix @@ -1,32 +1,43 @@ {stdenv, fetchurl, openal, libpng, libvorbis, mesa_glu, premake4, SDL2, SDL2_image, SDL2_ttf }: stdenv.mkDerivation rec { - version = "1.4.6"; + version = "1.4.9"; name = "tome4-${version}"; src = fetchurl { url = "http://te4.org/dl/t-engine/t-engine4-src-${version}.tar.bz2"; - sha256 = "12pi2lw1k6l3p209nnkh4nfv3ppp8kpd6mkh1324c81z6mh6w4wg"; + sha256 = "0c82m0g1ps64zghgdrp78m6bvfngcb75whhknqiailld7kz1g9xl"; }; - buildInputs = [ mesa_glu openal libpng libvorbis SDL2 SDL2_ttf SDL2_image premake4 ]; - NIX_CFLAGS_COMPILE = [ "-I${SDL2_image}/include/SDL2" "-I${SDL2_ttf}/include/SDL2" ]; + nativeBuildInputs = [ premake4 ]; + buildInputs = [ + mesa_glu openal libpng libvorbis SDL2 SDL2_ttf SDL2_image + ]; + NIX_CFLAGS_COMPILE = [ + "-I${SDL2_image}/include/SDL2" + "-I${SDL2_ttf}/include/SDL2" + ]; preConfigure = '' - sed -e "s@/opt/SDL-2.0/include/SDL2@${SDL2}/include/SDL2@g" -e "s@/usr/include/GL@/run/opengl-driver/include@g" -i premake4.lua + substituteInPlace premake4.lua \ + --replace "/opt/SDL-2.0/include/SDL2" "${SDL2.dev}/include/SDL2" \ + --replace "/usr/include/GL" "/run/opengl-driver/include" premake4 gmake ''; makeFlags = [ "config=release" ]; installPhase = '' install -Dm755 t-engine $out/opt/tome4/t-engine - echo "cd $out/opt/tome4" >> tome4 - echo "./t-engine &" >> tome4 + cat > tome4 <