aboutsummaryrefslogtreecommitdiff
path: root/pkgs/games/tome4
diff options
context:
space:
mode:
authorMatthew Bauer <mjbauer95@gmail.com>2018-11-27 16:43:32 -0600
committerMatthew Bauer <mjbauer95@gmail.com>2018-11-28 20:14:32 -0600
commit801b375925fb212eec52f74574ad4d19f74301ef (patch)
tree8f569af52d5d9bc210df4a3bfcbdf8489ff3f217 /pkgs/games/tome4
parent9d2c6ea47a146cb6e10c4d4ec08179cf18dc26fe (diff)
tome4: use premake hook
Diffstat (limited to 'pkgs/games/tome4')
-rw-r--r--pkgs/games/tome4/default.nix16
1 files changed, 4 insertions, 12 deletions
diff --git a/pkgs/games/tome4/default.nix b/pkgs/games/tome4/default.nix
index 3f6726a17f18..ec529676463f 100644
--- a/pkgs/games/tome4/default.nix
+++ b/pkgs/games/tome4/default.nix
@@ -25,9 +25,10 @@ in stdenv.mkDerivation rec {
sha256 = "0mc5dgh2x9nbili7gy6srjhb23ckalf08wqq2amyjr5rq392jvd7";
};
- nativeBuildInputs = [ premake4 makeWrapper unzip ];
+ nativeBuildInputs = [ makeWrapper unzip premake4 ];
- # tome4 vendors quite a few libraries so someone might want to look into avoiding that...
+ # tome4 vendors quite a few libraries so someone might want to look
+ # into avoiding that...
buildInputs = [
libGLU openal libpng libvorbis SDL2 SDL2_ttf SDL2_image
];
@@ -36,20 +37,11 @@ in stdenv.mkDerivation rec {
enableParallelBuilding = false;
NIX_CFLAGS_COMPILE = [
+ "-I${SDL2.dev}/include/SDL2"
"-I${SDL2_image}/include/SDL2"
"-I${SDL2_ttf}/include/SDL2"
];
- postPatch = ''
- substituteInPlace premake4.lua \
- --replace "/opt/SDL-2.0/include/SDL2" "${SDL2.dev}/include/SDL2" \
- --replace "/usr/include/GL" "/run/opengl-driver/include"
- '';
-
- preConfigure = ''
- premake4 gmake
- '';
-
makeFlags = [ "config=release" ];
# The wrapper needs to cd into the correct directory as tome4's detection of