summary refs log tree commit diff
path: root/pkgs/games/tome4
diff options
context:
space:
mode:
authorKranium Gikos Mendoza <kranium@gikos.net>2016-09-01 16:26:24 +0800
committerKranium Gikos Mendoza <kranium@gikos.net>2016-09-01 16:26:24 +0800
commitd15681f47b2962cc35fd2c850af9e7a09c5e41ec (patch)
tree6349cc0d9ec9ffa62bec40b74c1aec33e0bcf5b7 /pkgs/games/tome4
parentf688ea37d8ee41e42903f4eef7b6537dea14dfa8 (diff)
downloadnixpkgs-d15681f47b2962cc35fd2c850af9e7a09c5e41ec.tar
nixpkgs-d15681f47b2962cc35fd2c850af9e7a09c5e41ec.tar.gz
nixpkgs-d15681f47b2962cc35fd2c850af9e7a09c5e41ec.tar.bz2
nixpkgs-d15681f47b2962cc35fd2c850af9e7a09c5e41ec.tar.lz
nixpkgs-d15681f47b2962cc35fd2c850af9e7a09c5e41ec.tar.xz
nixpkgs-d15681f47b2962cc35fd2c850af9e7a09c5e41ec.tar.zst
nixpkgs-d15681f47b2962cc35fd2c850af9e7a09c5e41ec.zip
tome4: fix build
Diffstat (limited to 'pkgs/games/tome4')
-rw-r--r--pkgs/games/tome4/default.nix5
1 files changed, 3 insertions, 2 deletions
diff --git a/pkgs/games/tome4/default.nix b/pkgs/games/tome4/default.nix
index a118c0f0452..b0fd8072566 100644
--- a/pkgs/games/tome4/default.nix
+++ b/pkgs/games/tome4/default.nix
@@ -1,4 +1,4 @@
-{stdenv, fetchurl, openal, libvorbis, mesa_glu, premake4, SDL2, SDL2_image, SDL2_ttf}:
+{stdenv, fetchurl, openal, libpng, libvorbis, mesa_glu, premake4, SDL2, SDL2_image, SDL2_ttf }:
 
 stdenv.mkDerivation rec {
   version = "1.4.6";
@@ -7,7 +7,8 @@ stdenv.mkDerivation rec {
     url = "http://te4.org/dl/t-engine/t-engine4-src-${version}.tar.bz2";
     sha256 = "12pi2lw1k6l3p209nnkh4nfv3ppp8kpd6mkh1324c81z6mh6w4wg";
   };
-  buildInputs = [ mesa_glu openal libvorbis SDL2 SDL2_ttf SDL2_image premake4 ];
+  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" ];
   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
     premake4 gmake