Skip to content

Commit

Permalink
toluapp: Fix includes for newer Lua versions
Browse files Browse the repository at this point in the history
  • Loading branch information
NeQuissimus committed Jan 26, 2019
1 parent c3e995f commit 9e3db4d
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 1 deletion.
2 changes: 1 addition & 1 deletion pkgs/development/tools/toluapp/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ stdenv.mkDerivation rec {
nativeBuildInputs = [ sconsPackages.scons_3_0_1 ];
buildInputs = [ lua ];

patches = [ ./environ-and-linux-is-kinda-posix.patch ];
patches = [ ./environ-and-linux-is-kinda-posix.patch ./headers.patch ];

preConfigure = ''
substituteInPlace config_posix.py \
Expand Down
15 changes: 15 additions & 0 deletions pkgs/development/tools/toluapp/headers.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
diff --git a/include/tolua++.h b/include/tolua++.h
index ed53449..f57d56d 100644
--- a/include/tolua++.h
+++ b/include/tolua++.h
@@ -43,8 +43,8 @@ extern "C" {

typedef int lua_Object;

-#include "lua.h"
-#include "lauxlib.h"
+#include <lua.h>
+#include <lauxlib.h>

struct tolua_Error
{

0 comments on commit 9e3db4d

Please sign in to comment.